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:
  • Constructor Details

    • WebServerHandler

      public WebServerHandler()
  • Method Details

    • setArooaSession

      public void setArooaSession(ArooaSession session)
      Description copied from interface: ArooaSessionAware
      Accept the current Arooa Session.
      Specified by:
      setArooaSession in interface ArooaSessionAware
      Parameters:
      session - The Arooa Session. Never null.
    • toValue

      public org.eclipse.jetty.server.Handler toValue()
      Description copied from interface: ValueFactory
      Provide an instance of the type this is a factory for.
      Specified by:
      toValue in interface ValueFactory<org.eclipse.jetty.server.Handler>
      Returns:
      An instance of the type. May be null.
    • getRemoteConnection

      public RemoteConnection getRemoteConnection()
    • setRemoteConnection

      public void setRemoteConnection(RemoteConnection remoteConnection)
    • getIdMappings

      public RemoteIdMappings getIdMappings()
    • setIdMappings

      public void setIdMappings(RemoteIdMappings idMappings)
    • getMultiPartConfig

      public MultipartConfigParameters getMultiPartConfig()
    • setMultiPartConfig

      public void setMultiPartConfig(MultipartConfigParameters multiPartConfig)
    • getUploadDirectory

      public File getUploadDirectory()
    • setUploadDirectory

      public void setUploadDirectory(File uploadDirectory)
    • isAllowCrossOrigin

      public boolean isAllowCrossOrigin()
    • setAllowCrossOrigin

      public void setAllowCrossOrigin(boolean allowCrossOrigin)
    • getClassLoader

      public ClassLoader getClassLoader()
    • setClassLoader

      public void setClassLoader(ClassLoader classLoader)