|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.server.model.ResourceMethod.Builder
public static final class ResourceMethod.Builder
Resource method model builder.
| Method Summary | |
|---|---|
ResourceMethod |
build()
Build the resource method model and register it with the parent Resource.Builder. |
ResourceMethod.Builder |
consumes(java.util.Collection<MediaType> types)
Add consumed media types supported by the component. |
ResourceMethod.Builder |
consumes(MediaType... types)
Add consumed media types supported by the component. |
ResourceMethod.Builder |
consumes(java.lang.String... types)
Add consumed media types supported by the component. |
ResourceMethod.Builder |
encodedParameters(boolean value)
If set to true, the parameter values will not be automatically
decoded. |
ResourceMethod.Builder |
handledBy(java.lang.Class<?> handlerClass,
java.lang.reflect.Method method)
Define a resource method handler binding. |
ResourceMethod.Builder |
handledBy(java.lang.Class<? extends Inflector> inflectorClass)
Define an inflector-based resource method handler binding. |
ResourceMethod.Builder |
handledBy(Inflector<Request,?> inflector)
Define an inflector-based resource method handler binding. |
ResourceMethod.Builder |
handledBy(java.lang.Object handlerInstance,
java.lang.reflect.Method method)
Define a resource method handler binding. |
ResourceMethod.Builder |
httpMethod(java.lang.String name)
Set the associated HTTP method name. |
ResourceMethod.Builder |
path(java.lang.String path)
Set the method routing path. |
ResourceMethod.Builder |
produces(java.util.Collection<MediaType> types)
Add produced media types supported by the component. |
ResourceMethod.Builder |
produces(MediaType... types)
Add produced media types supported by the component. |
ResourceMethod.Builder |
produces(java.lang.String... types)
Add produced media types supported by the component. |
ResourceMethod.Builder |
suspended(long timeout,
java.util.concurrent.TimeUnit unit)
Mark the component for suspending. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public ResourceMethod.Builder httpMethod(java.lang.String name)
name - HTTP method name.
public ResourceMethod.Builder path(java.lang.String path)
path - method path.
public ResourceMethod.Builder produces(java.lang.String... types)
types - produced media types.
public ResourceMethod.Builder produces(MediaType... types)
types - produced media types.
public ResourceMethod.Builder produces(java.util.Collection<MediaType> types)
types - produced media types.
public ResourceMethod.Builder consumes(java.lang.String... types)
types - consumed media types.
public ResourceMethod.Builder consumes(MediaType... types)
types - consumed media types.
public ResourceMethod.Builder consumes(java.util.Collection<MediaType> types)
types - consumed media types.
public ResourceMethod.Builder suspended(long timeout,
java.util.concurrent.TimeUnit unit)
timeout - suspend timeout value.unit - suspend timeout time unit.
public ResourceMethod.Builder encodedParameters(boolean value)
true, the parameter values will not be automatically
decoded.
Defaults to false.
value - true if the automatic parameter decoding should be
disabled, false otherwise.
Encoded
public ResourceMethod.Builder handledBy(java.lang.Class<?> handlerClass,
java.lang.reflect.Method method)
handlerClass - concrete resource method handler class.method - handling method.
public ResourceMethod.Builder handledBy(java.lang.Object handlerInstance,
java.lang.reflect.Method method)
handlerInstance - concrete resource method handler instance.method - handling method.
public ResourceMethod.Builder handledBy(Inflector<Request,?> inflector)
inflector - inflector handling the resource method.
public ResourceMethod.Builder handledBy(java.lang.Class<? extends Inflector> inflectorClass)
inflectorClass - class of the inflector handling the resource method.
public ResourceMethod build()
Resource.Builder.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||