Package net.officefloor.server.http
Interface HttpServerImplementationContext
public interface HttpServerImplementationContext
Context for the
HttpServerImplementation.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescription<M extends InputManagedObject>
ExternalServiceInput<ServerHttpConnection,M> getExternalServiceInput(Class<M> managedObjectType) Obtains theExternalServiceInput.Obtains theHttpServerLocation.Obtains theDeployedOfficeInputfor internal invoked servicing.Obtains theOfficeFloorDeployerto configure theHttpServer.Obtains theOfficeFloorSourceContextto obtain details to configure theHttpServerImplementation.Obtains theServerHttpHeadername.Obtains theSSLContextto use for HTTPS.booleanIndicates whether theHttpServerImplementationshould include the stack trace inEscalationresponses.
-
Method Details
-
getHttpServerLocation
HttpServerLocation getHttpServerLocation()Obtains theHttpServerLocation.- Returns:
HttpServerLocation.
-
getServerName
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
Obtains 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:
Exception- If fails to create theSSLContext.
-
getInternalServiceInput
DeployedOfficeInput getInternalServiceInput()Obtains theDeployedOfficeInputfor internal invoked servicing.- Returns:
DeployedOfficeInputfor internal invoked servicing.
-
getExternalServiceInput
<M extends InputManagedObject> ExternalServiceInput<ServerHttpConnection,M> getExternalServiceInput(Class<M> managedObjectType) Obtains theExternalServiceInput.- Type Parameters:
M-ManagedObjecttype.- Parameters:
managedObjectType- Type of theManagedObject.- 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.
-