public static class DeploymentContext.Builder extends Object
Application class or instance.
If properties of the builder are not modified, default values will be utilized:
After build() has been invoked, the state of the builder will be reset to default values and another
context for the associated JAX-RS / Jersey application can be prepared and built.
| Modifier | Constructor and Description |
|---|---|
protected |
Builder()
Create new deployment context builder instance not explicitly bound to the JAX-RS / Jersey application class.
|
protected |
Builder(javax.ws.rs.core.Application app)
Create new deployment context builder instance and bind it to the JAX-RS / Jersey application instance.
|
protected |
Builder(Class<? extends javax.ws.rs.core.Application> appClass)
Create new deployment context builder instance and bind it to the JAX-RS / Jersey application class.
|
| Modifier and Type | Method and Description |
|---|---|
DeploymentContext |
build()
Build a new application deployment context configured by the current state of this
application deployment context builder.
|
DeploymentContext.Builder |
contextPath(String contextPath)
Set the application deployment context path.
|
protected void |
reset()
Reset the application deployment context builder values to defaults.
|
protected Builder()
The constructor is provided to support different subclass initialization scenarios.
protected Builder(javax.ws.rs.core.Application app)
app - JAX-RS / Jersey application instance.protected Builder(Class<? extends javax.ws.rs.core.Application> appClass)
appClass - JAX-RS / Jersey application class.public DeploymentContext.Builder contextPath(String contextPath)
contextPath - application context path.NullPointerException - if contextPath is null.public DeploymentContext build()
protected void reset()
Copyright © 2007-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.