|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jersey.test.framework.AppDescriptor.AppDescriptorBuilder<LowLevelAppDescriptor.Builder,LowLevelAppDescriptor>
com.sun.jersey.test.framework.LowLevelAppDescriptor.Builder
public static class LowLevelAppDescriptor.Builder
The builder for building a low-level application descriptor.
If properties of the builder are not modified default values be utilized. The default value for the context path is an empty string.
After the build()
has been invoked the state of the builder
will be reset to the default values.
Field Summary | |
---|---|
protected String |
contextPath
|
protected ResourceConfig |
rc
|
Fields inherited from class com.sun.jersey.test.framework.AppDescriptor.AppDescriptorBuilder |
---|
cc |
Constructor Summary | |
---|---|
LowLevelAppDescriptor.Builder(Class... classes)
Create a builder with one or more root resource and provider classes. |
|
LowLevelAppDescriptor.Builder(ResourceConfig rc)
Create a builder with a resource configuration. |
|
LowLevelAppDescriptor.Builder(String... packages)
Create a builder with one or more package names where root resource and provider classes reside. |
Method Summary | |
---|---|
LowLevelAppDescriptor |
build()
Build the low-level application descriptor. |
LowLevelAppDescriptor.Builder |
contextPath(String contextPath)
Set the context path. |
protected void |
reset()
|
Methods inherited from class com.sun.jersey.test.framework.AppDescriptor.AppDescriptorBuilder |
---|
clientConfig |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final ResourceConfig rc
protected String contextPath
Constructor Detail |
---|
public LowLevelAppDescriptor.Builder(String... packages) throws IllegalArgumentException
An instance of PackagesResourceConfig
will be created and
set as the resource configuration.
packages
- one or more package names where
root resource and provider classes reside.
IllegalArgumentException
- if packages
is null.public LowLevelAppDescriptor.Builder(Class... classes) throws IllegalArgumentException
An instance of ClassNamesResourceConfig
will be created and
set as the resource configuration.
classes
- one or more root resource and provider classes.
IllegalArgumentException
- if classes
is null.public LowLevelAppDescriptor.Builder(ResourceConfig rc)
rc
- the resource configuration.
IllegalArgumentException
- if rc
is null.Method Detail |
---|
public LowLevelAppDescriptor.Builder contextPath(String contextPath)
contextPath
- the context path to the application.
IllegalArgumentException
- if contextPath
is null.public LowLevelAppDescriptor build()
build
in class AppDescriptor.AppDescriptorBuilder<LowLevelAppDescriptor.Builder,LowLevelAppDescriptor>
protected void reset()
reset
in class AppDescriptor.AppDescriptorBuilder<LowLevelAppDescriptor.Builder,LowLevelAppDescriptor>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |