|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface ResourceBuilder.BoundResourceBuilder
Represents a supported resource path to which new resource methods and sub-resource locators can be attached.
| Method Summary | |
|---|---|
ResourceBuilder.BoundResourceBuilder |
consumes(javax.ws.rs.core.MediaType... mediaTypes)
Set supported request media types (equivalent of Consumes)
for the current path. |
ResourceBuilder.ResourceMethodBuilder |
method(String... methods)
Bind new HTTP methods to the path previously configured in this builder. |
ResourceBuilder.BoundResourceBuilder |
produces(javax.ws.rs.core.MediaType... mediaTypes)
Set supported response media types (equivalent of Produces)
for the current path. |
| Method Detail |
|---|
ResourceBuilder.ResourceMethodBuilder method(String... methods)
builder.
If any of the specified methods has already been bound earlier, the
previous method binding will be overridden.
Invoking is method is equivalent to placing a http method meta-annotated annotation on a resource method in an
annotation-based resource class. See the application
builder example for more information.
methods - set of HTTP methods to be bound. Any duplicate values
will be automatically discarded.
resource method builder
instance.ResourceBuilder.BoundResourceBuilder produces(javax.ws.rs.core.MediaType... mediaTypes)
Produces)
for the current path. Overrides any previously set values.
Invoking is method is equivalent to placing @Produces annotation on a resource class in an annotation-based
resource class. See the application builder example
for more information.
mediaTypes - supported response media types.
ResourceBuilder.ResourceMethodBuilder updated builder instance}.ResourceBuilder.BoundResourceBuilder consumes(javax.ws.rs.core.MediaType... mediaTypes)
Consumes)
for the current path. Overrides any previously set values.
Invoking is method is equivalent to placing @Consumes annotation on a resource class in an annotation-based
resource class. See the application builder example
for more information.
mediaTypes - supported request media types.
BoundBuilder updated builder instance}.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||