Package org.glassfish.grizzly.config
Class ContextRootInfo
- java.lang.Object
-
- org.glassfish.grizzly.config.ContextRootInfo
-
public final class ContextRootInfo extends Object
Class represents context-root associated information
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ContextRootInfo.Holder
The interface, which is responsible for holding ContextRootInfo, which makes possible to initialize ContextRootInfo lazily.
-
Constructor Summary
Constructors Constructor Description ContextRootInfo(ContextRootInfo.Holder holder)
Create ContextRootInfo using passedContextRootInfo.Holder
object, which might be initialized lazily.ContextRootInfo(org.glassfish.grizzly.http.server.HttpHandler handler, Object container)
Create ContextRootInfo using preparedHttpHandler
and application container parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getContainer()
Gets the application container, associated with the context.org.glassfish.grizzly.http.server.HttpHandler
getHttpHandler()
Gets the GrizzlyHttpHandler
, associated with the context.
-
-
-
Constructor Detail
-
ContextRootInfo
public ContextRootInfo(org.glassfish.grizzly.http.server.HttpHandler handler, Object container)
Create ContextRootInfo using preparedHttpHandler
and application container parameters.- Parameters:
handler
- GrizzlyHttpHandler
, associated with the context.container
- application container, associated with the context.
-
ContextRootInfo
public ContextRootInfo(ContextRootInfo.Holder holder)
Create ContextRootInfo using passedContextRootInfo.Holder
object, which might be initialized lazily.- Parameters:
holder
- context infoContextRootInfo.Holder
.
-
-
Method Detail
-
getHttpHandler
public org.glassfish.grizzly.http.server.HttpHandler getHttpHandler()
Gets the GrizzlyHttpHandler
, associated with the context.- Returns:
- the Grizzly
HttpHandler
, associated with the context.
-
getContainer
public Object getContainer()
Gets the application container, associated with the context.- Returns:
- the application container, associated with the context.
-
-