public class HttpServerAutoWireOfficeFloorSource extends WebApplicationAutoWireOfficeFloorSource implements HttpServerAutoWireApplication
OfficeFloorSource
that extends the
WebApplicationAutoWireOfficeFloorSource
to add the additional
functionality for running as a stand-alone HTTP Server.AbstractOfficeFloorSource.SpecificationContext
processScopeWirer
HANDLER_INPUT_NAME, HANDLER_SECTION_NAME, WEB_PUBLIC_RESOURCES_CLASS_PATH_PREFIX
Constructor and Description |
---|
HttpServerAutoWireOfficeFloorSource()
Initiate.
|
HttpServerAutoWireOfficeFloorSource(int httpPort)
Initiate to use the specified HTTP port.
|
HttpServerAutoWireOfficeFloorSource(int httpPort,
int httpsPort,
Class<? extends SslEngineSource> sslEngineSourceClass)
Initiate to use the specified HTTP port.
|
Modifier and Type | Method and Description |
---|---|
AutoWireObject |
addHttpServerSocket(int port)
Adds listening for HTTP on the specified port.
|
AutoWireObject |
addHttpsServerSocket(int port,
Class<? extends SslEngineSource> sslEngineSourceClass)
Adds listening for HTTPS on the specified port.
|
AutoWireObject |
getHttpSessionAutoWireObject()
Obtains the
AutoWireObject for the HttpSession . |
protected void |
initOfficeFloor(OfficeFloorDeployer deployer,
OfficeFloorSourceContext context)
Allows overriding for initialising the
OfficeFloor before
auto-wiring. |
addHttpApplicationObject, addHttpApplicationObject, addHttpRequestObject, addHttpRequestObject, addHttpSessionObject, addHttpSessionObject, addHttpTemplate, chainServicer, getHttpSecurity, getTemplateSectionName, getURIs, linkEscalation, linkEscalation, linkToHttpTemplate, linkToResource, linkToSendResponse, linkUri, setDefaultHttpTemplateUriSuffix, setHttpSecurity
addGovernance, addManagedObject, addObject, addSection, addSection, addSectionTransformer, addStartupFlow, addSupplier, assignDefaultTeam, assignTeam, getAppropriateAutoWire, getOfficeFloorCompiler, getSection, isLinked, isObjectAvailable, link, linkEscalation, loadSpecification, openOfficeFloor, setProfiler, sourceOfficeFloor, specifyConfigurationProperties
getSpecification
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addHttpApplicationObject, addHttpApplicationObject, addHttpRequestObject, addHttpRequestObject, addHttpSessionObject, addHttpSessionObject, addHttpTemplate, chainServicer, getHttpSecurity, getURIs, linkEscalation, linkEscalation, linkToHttpTemplate, linkToResource, linkToSendResponse, linkUri, setDefaultHttpTemplateUriSuffix, setHttpSecurity
addGovernance, addManagedObject, addObject, addSection, addSection, addSectionTransformer, addStartupFlow, addSupplier, assignDefaultTeam, assignTeam, getOfficeFloorCompiler, getSection, isLinked, isObjectAvailable, link, linkEscalation, openOfficeFloor, setProfiler
public HttpServerAutoWireOfficeFloorSource()
public HttpServerAutoWireOfficeFloorSource(int httpPort)
httpPort
- HTTP port.public HttpServerAutoWireOfficeFloorSource(int httpPort, int httpsPort, Class<? extends SslEngineSource> sslEngineSourceClass)
httpPort
- HTTP port.httpsPort
- HTTPS port.sslEngineSourceClass
- SslEngineSource
class. May be null
.public AutoWireObject addHttpServerSocket(int port)
HttpServerAutoWireApplication
addHttpServerSocket
in interface HttpServerAutoWireApplication
port
- Port to listen on.AutoWireObject
of the added HTTP server socket.public AutoWireObject addHttpsServerSocket(int port, Class<? extends SslEngineSource> sslEngineSourceClass)
HttpServerAutoWireApplication
addHttpsServerSocket
in interface HttpServerAutoWireApplication
port
- Port to listen on.sslEngineSourceClass
- SslEngineSource
class. May be null
.AutoWireObject
of the added HTTPS server socket.public AutoWireObject getHttpSessionAutoWireObject()
HttpServerAutoWireApplication
Obtains the AutoWireObject
for the HttpSession
.
This allows overriding the default configuration for the
HttpSessionManagedObjectSource
.
getHttpSessionAutoWireObject
in interface HttpServerAutoWireApplication
AutoWireObject
for the HttpSession
.protected void initOfficeFloor(OfficeFloorDeployer deployer, OfficeFloorSourceContext context) throws Exception
AutoWireOfficeFloorSource
OfficeFloor
before
auto-wiring.initOfficeFloor
in class WebApplicationAutoWireOfficeFloorSource
deployer
- OfficeFloorDeployer
.context
- OfficeFloorSourceContext
.Exception
- If fails to initialise.Copyright © 2005–2016. All rights reserved.