Package net.officefloor.server.http
Interface HttpServerImplementationContext
-
public interface HttpServerImplementationContextContext for theHttpServerImplementation.- Author:
- Daniel Sagenschneider
-
-
Method Summary
-
-
-
Method Detail
-
getHttpServerLocation
HttpServerLocation getHttpServerLocation()
Obtains theHttpServerLocation.- Returns:
HttpServerLocation.
-
getServerName
java.lang.String getServerName()
Obtains the
ServerHttpHeadername.HttpServerImplementationimplementations may append to this name to indicate their use.- Returns:
ServerHttpHeadername. May benullto not sendHttpHeader.
-
getDateHttpHeaderClock
DateHttpHeaderClock getDateHttpHeaderClock()
- Returns:
DateHttpHeaderClock. May benullto not sendHttpHeader.
-
isIncludeEscalationStackTrace
boolean isIncludeEscalationStackTrace()
Indicates whether the
HttpServerImplementationshould include the stack trace inEscalationresponses.For development, stack traces should be enabled for easier debugging of issues. However, in production, they should be hidden.
- Returns:
trueto include the stack traces.falseshould hide stack traces.
-
getSslContext
javax.net.ssl.SSLContext getSslContext() throws java.lang.ExceptionObtains the
SSLContextto use for HTTPS.Should the
HttpServerbe behind a Reverse Proxy providing SSL, then this may benullif the Reverse Proxy is communicating via non-secure HTTP.- Returns:
SSLContextto use for HTTPS. May benullif behind Reverse Proxy handling SSL (with communication from Reverse Proxy over non-secure HTTP).- Throws:
java.lang.Exception- If fails to create theSSLContext.
-
getInternalServiceInput
DeployedOfficeInput getInternalServiceInput()
Obtains theDeployedOfficeInputfor internal invoked servicing.- Returns:
DeployedOfficeInputfor internal invoked servicing.
-
getExternalServiceInput
<M extends ManagedObject> ExternalServiceInput<ServerHttpConnection,M> getExternalServiceInput(java.lang.Class<M> managedObjectType, ExternalServiceCleanupEscalationHandler<? super M> cleanupEscalationHandler)
Obtains theExternalServiceInput.- Type Parameters:
M-ManagedObjecttype.- Parameters:
managedObjectType- Type of theManagedObject.cleanupEscalationHandler-ExternalServiceCleanupEscalationHandler.- Returns:
ExternalServiceInput.
-
getOfficeFloorDeployer
OfficeFloorDeployer getOfficeFloorDeployer()
Obtains theOfficeFloorDeployerto configure theHttpServer.- Returns:
OfficeFloorDeployerto configure theHttpServer.
-
getOfficeFloorSourceContext
OfficeFloorSourceContext getOfficeFloorSourceContext()
Obtains theOfficeFloorSourceContextto obtain details to configure theHttpServerImplementation.- Returns:
OfficeFloorSourceContextto obtain details to configure theHttpServerImplementation.
-
-