diff --git a/Foundation Web Application/src/com/foundation/web/DefaultResourceRequestHandler.java b/Foundation Web Application/src/com/foundation/web/DefaultResourceRequestHandler.java index 7d3c4c0..f872490 100644 --- a/Foundation Web Application/src/com/foundation/web/DefaultResourceRequestHandler.java +++ b/Foundation Web Application/src/com/foundation/web/DefaultResourceRequestHandler.java @@ -7,13 +7,22 @@ import com.foundation.web.WebApplication.PathSubstitution; import com.foundation.web.interfaces.IConnectionContext; import com.foundation.web.interfaces.IRequest; import com.foundation.web.interfaces.IResponse; +import com.foundation.web.interfaces.ISession; public class DefaultResourceRequestHandler extends ResourceRequestHandler { private IHashMap nameSubstitutionMap = new LiteHashMap(10); private IHashMap pathSubstitutionMap = new LiteHashMap(10); +/** + * DefaultResourceRequestHandler constructor. + */ public DefaultResourceRequestHandler() { - }//DefaultResourceRequestHandler()// +/* (non-Javadoc) + * @see com.foundation.web.ResourceRequestHandler#processWebSocketUpgrade(com.foundation.web.interfaces.IRequest, com.foundation.web.interfaces.IResponse, com.foundation.web.interfaces.ISession, boolean, boolean, com.foundation.web.interfaces.IConnectionContext, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String) + */ +public void processWebSocketUpgrade(IRequest request, IResponse response, ISession session, boolean isSecure, boolean clientHadBadSession, IConnectionContext connectionContext, String connection, String secWebSocketKey, String secWebSocketProtocol, String secWebSocketVersion, String origin) { + response.setError(IResponse.ERROR_UPGRADE_REJECTED); +}//processWebSocketUpgrade()// /** * Adds a resource name subtitution mapping where the old resource name will be replaced by the new resource name automatically prior to the request being processed. * @param oldName The old resource name. diff --git a/Foundation Web Application/src/com/foundation/web/ForwardingDomain.java b/Foundation Web Application/src/com/foundation/web/ForwardingDomain.java index 696e5a6..e066231 100644 --- a/Foundation Web Application/src/com/foundation/web/ForwardingDomain.java +++ b/Foundation Web Application/src/com/foundation/web/ForwardingDomain.java @@ -223,6 +223,11 @@ public String getErrorHeader(int errorCode) { public ISession getSession(String sessionId) { return null; }//getSession()// +/* (non-Javadoc) + * @see com.foundation.web.interfaces.IWebApplication#handleWebSocketUpgrade(com.foundation.web.interfaces.IRequest, com.foundation.web.interfaces.IResponse, com.foundation.web.interfaces.ISession, boolean, boolean, com.foundation.web.interfaces.IConnectionContext, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String) + */ +public void handleWebSocketUpgrade(IRequest request, IResponse response, ISession session, boolean isSecure, boolean clientHadBadSession, IConnectionContext connectionContext, String connection, String secWebSocketKey, String secWebSocketProtocol, String secWebSocketVersion, String origin) { +}//handleWebSocketUpgrade()// /* (non-Javadoc) * @see com.foundation.web.interfaces.IWebApplication#processRequest(com.foundation.web.interfaces.IRequest, com.foundation.web.interfaces.IResponse, com.foundation.web.interfaces.ISession, boolean, boolean, com.foundation.web.interfaces.IConnectionContext) */ diff --git a/Foundation Web Application/src/com/foundation/web/IWebServerApplicationDefaults.java b/Foundation Web Application/src/com/foundation/web/IWebServerApplicationDefaults.java index 9a7270f..3bec09b 100644 --- a/Foundation Web Application/src/com/foundation/web/IWebServerApplicationDefaults.java +++ b/Foundation Web Application/src/com/foundation/web/IWebServerApplicationDefaults.java @@ -85,4 +85,6 @@ public interface IWebServerApplicationDefaults { "
Safari has a built in auto update system, but if you are still having problems you can reinstall it: Go to the Apple Safari website and click the \"Download Now\" link and follow the instructions.
" + "