net.officefloor.plugin.socket.server.http.source
Class HttpServerSocketManagedObjectSource

java.lang.Object
  extended by net.officefloor.frame.spi.managedobject.source.impl.AbstractAsyncManagedObjectSource<D,F>
      extended by net.officefloor.frame.spi.managedobject.source.impl.AbstractManagedObjectSource<None,Indexed>
          extended by net.officefloor.plugin.socket.server.impl.AbstractServerSocketManagedObjectSource<HttpConnectionHandler>
              extended by net.officefloor.plugin.socket.server.http.source.HttpServerSocketManagedObjectSource
All Implemented Interfaces:
ManagedObjectSourceService<None,Indexed,HttpServerSocketManagedObjectSource>, ManagedObjectSource<None,Indexed>

public class HttpServerSocketManagedObjectSource
extends AbstractServerSocketManagedObjectSource<HttpConnectionHandler>
implements ManagedObjectSourceService<None,Indexed,HttpServerSocketManagedObjectSource>

ManagedObjectSource for a ServerHttpConnection.

Author:
Daniel Sagenschneider

Nested Class Summary
 
Nested classes/interfaces inherited from class net.officefloor.frame.spi.managedobject.source.impl.AbstractAsyncManagedObjectSource
AbstractAsyncManagedObjectSource.Labeller, AbstractAsyncManagedObjectSource.MetaDataContext<D extends Enum<D>,F extends Enum<F>>, AbstractAsyncManagedObjectSource.SpecificationContext
 
Field Summary
 
Fields inherited from class net.officefloor.plugin.socket.server.impl.AbstractServerSocketManagedObjectSource
PROPERTY_BUFFER_SIZE, PROPERTY_MAXIMUM_CONNECTIONS_PER_LISTENER, PROPERTY_PORT
 
Constructor Summary
HttpServerSocketManagedObjectSource()
           
 
Method Summary
static void autoWire(AutoWireOfficeFloorSource source, int port, String sectionName, String sectionInputName)
          Convenience method to auto-wire in a HttpServerSocketManagedObjectSource into an AutoWireOfficeFloorSource.
protected  CommunicationProtocol<HttpConnectionHandler> createCommunicationProtocol()
          Creates the CommunicationProtocol.
static ManagedObjectSourceWirer createManagedObjectSourceWirer(String sectionName, String sectionInputName)
          Convenience method to create the ManagedObjectSourceWirer for wiring in the HttpServerSocketManagedObjectSource.
 String getManagedObjectSourceAlias()
           
 Class<HttpServerSocketManagedObjectSource> getManagedObjectSourceClass()
           
 
Methods inherited from class net.officefloor.plugin.socket.server.impl.AbstractServerSocketManagedObjectSource
createWrappingCommunicationProtocol, getManagedObject, loadMetaData, loadSpecification, start, stop
 
Methods inherited from class net.officefloor.frame.spi.managedobject.source.impl.AbstractManagedObjectSource
sourceManagedObject
 
Methods inherited from class net.officefloor.frame.spi.managedobject.source.impl.AbstractAsyncManagedObjectSource
getMetaData, getSpecification, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpServerSocketManagedObjectSource

public HttpServerSocketManagedObjectSource()
Method Detail

createManagedObjectSourceWirer

public static ManagedObjectSourceWirer createManagedObjectSourceWirer(String sectionName,
                                                                      String sectionInputName)
Convenience method to create the ManagedObjectSourceWirer for wiring in the HttpServerSocketManagedObjectSource.

Parameters:
sectionName - Name of the section handling the HttpRequest.
sectionInputName - Name of the SectionInput handling the HttpRequest.
Returns:
ManagedObjectSourceWirer for wiring in the HttpServerSocketManagedObjectSource.

autoWire

public static void autoWire(AutoWireOfficeFloorSource source,
                            int port,
                            String sectionName,
                            String sectionInputName)
Convenience method to auto-wire in a HttpServerSocketManagedObjectSource into an AutoWireOfficeFloorSource.

Parameters:
source - AutoWireOfficeFloorSource.
port - Port to listen for HTTP requests.

getManagedObjectSourceAlias

public String getManagedObjectSourceAlias()
Specified by:
getManagedObjectSourceAlias in interface ManagedObjectSourceService<None,Indexed,HttpServerSocketManagedObjectSource>

getManagedObjectSourceClass

public Class<HttpServerSocketManagedObjectSource> getManagedObjectSourceClass()
Specified by:
getManagedObjectSourceClass in interface ManagedObjectSourceService<None,Indexed,HttpServerSocketManagedObjectSource>

createCommunicationProtocol

protected CommunicationProtocol<HttpConnectionHandler> createCommunicationProtocol()
Description copied from class: AbstractServerSocketManagedObjectSource
Creates the CommunicationProtocol.

Specified by:
createCommunicationProtocol in class AbstractServerSocketManagedObjectSource<HttpConnectionHandler>
Returns:
CommunicationProtocol.


Copyright © 2005-2011. All Rights Reserved.