Package org.oddjob.web
Class WebServerHandler
java.lang.Object
org.oddjob.web.WebServerHandler
- All Implemented Interfaces:
ArooaValue,ArooaSessionAware,ValueFactory<org.eclipse.jetty.server.Handler>
public class WebServerHandler
extends Object
implements ValueFactory<org.eclipse.jetty.server.Handler>, ArooaSessionAware
Provide Jetty handler for an HTTP and Web Socket Remote Connection. Designed as
an Oddjob Type, but currently not exposed in the Arooa descriptor.
This handler also includes the REST API. It probably shouldn't and so will be
removed at some point. It can be included separately anyway using the
OddjobRestHandler.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.oddjob.arooa.types.ValueFactory
ValueFactory.Conversions -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidsetAllowCrossOrigin(boolean allowCrossOrigin) voidsetArooaSession(ArooaSession session) Accept the current Arooa Session.voidsetClassLoader(ClassLoader classLoader) voidsetIdMappings(RemoteIdMappings idMappings) voidsetMultiPartConfig(MultipartConfigParameters multiPartConfig) voidsetRemoteConnection(RemoteConnection remoteConnection) voidsetUploadDirectory(File uploadDirectory) org.eclipse.jetty.server.HandlertoValue()Provide an instance of the type this is a factory for.
-
Constructor Details
-
WebServerHandler
public WebServerHandler()
-
-
Method Details
-
setArooaSession
Description copied from interface:ArooaSessionAwareAccept the current Arooa Session.- Specified by:
setArooaSessionin interfaceArooaSessionAware- Parameters:
session- The Arooa Session. Never null.
-
toValue
public org.eclipse.jetty.server.Handler toValue()Description copied from interface:ValueFactoryProvide an instance of the type this is a factory for.- Specified by:
toValuein interfaceValueFactory<org.eclipse.jetty.server.Handler>- Returns:
- An instance of the type. May be null.
-
getRemoteConnection
-
setRemoteConnection
-
getIdMappings
-
setIdMappings
-
getMultiPartConfig
-
setMultiPartConfig
-
getUploadDirectory
-
setUploadDirectory
-
isAllowCrossOrigin
public boolean isAllowCrossOrigin() -
setAllowCrossOrigin
public void setAllowCrossOrigin(boolean allowCrossOrigin) -
getClassLoader
-
setClassLoader
-