Package net.officefloor.server.http
Interface HttpServerImplementationContext
-
public interface HttpServerImplementationContext
Context for theHttpServerImplementation
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
-
-
-
Method Detail
-
getHttpServerLocation
HttpServerLocation getHttpServerLocation()
Obtains theHttpServerLocation
.- Returns:
HttpServerLocation
.
-
getServerName
java.lang.String getServerName()
Obtains the
Server
HttpHeader
name.HttpServerImplementation
implementations may append to this name to indicate their use.- Returns:
Server
HttpHeader
name. May benull
to not sendHttpHeader
.
-
getDateHttpHeaderClock
DateHttpHeaderClock getDateHttpHeaderClock()
- Returns:
DateHttpHeaderClock
. May benull
to not sendHttpHeader
.
-
isIncludeEscalationStackTrace
boolean isIncludeEscalationStackTrace()
Indicates whether the
HttpServerImplementation
should include the stack trace inEscalation
responses.For development, stack traces should be enabled for easier debugging of issues. However, in production, they should be hidden.
- Returns:
true
to include the stack traces.false
should hide stack traces.
-
getSslContext
javax.net.ssl.SSLContext getSslContext() throws java.lang.Exception
Obtains the
SSLContext
to use for HTTPS.Should the
HttpServer
be behind a Reverse Proxy providing SSL, then this may benull
if the Reverse Proxy is communicating via non-secure HTTP.- Returns:
SSLContext
to use for HTTPS. May benull
if 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 theDeployedOfficeInput
for internal invoked servicing.- Returns:
DeployedOfficeInput
for 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
-ManagedObject
type.- Parameters:
managedObjectType
- Type of theManagedObject
.cleanupEscalationHandler
-ExternalServiceCleanupEscalationHandler
.- Returns:
ExternalServiceInput
.
-
getOfficeFloorDeployer
OfficeFloorDeployer getOfficeFloorDeployer()
Obtains theOfficeFloorDeployer
to configure theHttpServer
.- Returns:
OfficeFloorDeployer
to configure theHttpServer
.
-
getOfficeFloorSourceContext
OfficeFloorSourceContext getOfficeFloorSourceContext()
Obtains theOfficeFloorSourceContext
to obtain details to configure theHttpServerImplementation
.- Returns:
OfficeFloorSourceContext
to obtain details to configure theHttpServerImplementation
.
-
-