Package | Description |
---|---|
org.glassfish.jersey.server.model |
Jersey server-side application & resource modeling classes.
|
Modifier and Type | Method and Description |
---|---|
ResourceMethod.Builder |
Resource.Builder.addMethod()
Add a new arbitrary method model to the resource.
|
ResourceMethod.Builder |
Resource.Builder.addMethod(ResourceMethod resourceMethod)
Add a new method model that is a copy of the given
resourceMethod . |
ResourceMethod.Builder |
Resource.Builder.addMethod(String httpMethod)
Add a new method model to the resource for processing requests of
the specified HTTP method.
|
ResourceMethod.Builder |
ResourceMethod.Builder.consumes(Collection<javax.ws.rs.core.MediaType> types)
Add consumed media types supported by the component.
|
ResourceMethod.Builder |
ResourceMethod.Builder.consumes(javax.ws.rs.core.MediaType... types)
Add consumed media types supported by the component.
|
ResourceMethod.Builder |
ResourceMethod.Builder.consumes(String... types)
Add consumed media types supported by the component.
|
ResourceMethod.Builder |
ResourceMethod.Builder.encodedParameters(boolean value)
If set to
true , the parameter values will not be automatically
decoded. |
ResourceMethod.Builder |
ResourceMethod.Builder.extended(boolean extended)
Get the flag indicating whether the resource method is extended or is a core of exposed RESTful API.
|
ResourceMethod.Builder |
ResourceMethod.Builder.handledBy(Class<?> handlerClass,
Method method)
Define a resource method handler binding.
|
ResourceMethod.Builder |
ResourceMethod.Builder.handledBy(Class<? extends Inflector> inflectorClass)
Define an inflector-based resource method handler binding.
|
ResourceMethod.Builder |
ResourceMethod.Builder.handledBy(Inflector<javax.ws.rs.container.ContainerRequestContext,?> inflector)
Define an inflector-based resource method handler binding.
|
ResourceMethod.Builder |
ResourceMethod.Builder.handledBy(Object handlerInstance,
Method method)
Define a resource method handler binding.
|
ResourceMethod.Builder |
ResourceMethod.Builder.handlerParameters(Collection<Parameter> parameters)
Parameters defined on the handler (i.e.
|
ResourceMethod.Builder |
ResourceMethod.Builder.handlingMethod(Method handlingMethod)
Define a specific method of the handling class that will be executed.
|
ResourceMethod.Builder |
ResourceMethod.Builder.httpMethod(String name)
Set the associated HTTP method name.
|
ResourceMethod.Builder |
ResourceMethod.Builder.managedAsync()
Set the managed async required flag on the method model to
true . |
ResourceMethod.Builder |
ResourceMethod.Builder.nameBindings(Annotation... nameBindings)
Adds name bindings.
|
ResourceMethod.Builder |
ResourceMethod.Builder.nameBindings(Class<? extends Annotation>... nameBindings)
Adds name bindings.
|
ResourceMethod.Builder |
ResourceMethod.Builder.nameBindings(Collection<Class<? extends Annotation>> nameBindings)
Adds name bindings.
|
ResourceMethod.Builder |
ResourceMethod.Builder.produces(Collection<javax.ws.rs.core.MediaType> types)
Add produced media types supported by the component.
|
ResourceMethod.Builder |
ResourceMethod.Builder.produces(javax.ws.rs.core.MediaType... types)
Add produced media types supported by the component.
|
ResourceMethod.Builder |
ResourceMethod.Builder.produces(String... types)
Add produced media types supported by the component.
|
ResourceMethod.Builder |
ResourceMethod.Builder.routingResponseType(Type routingResponseType)
Define the response entity type used during the routing for
selection of the resource methods.
|
ResourceMethod.Builder |
ResourceMethod.Builder.sse()
Set the SSE flag on the method model to
true . |
ResourceMethod.Builder |
ResourceMethod.Builder.suspended(long timeout,
TimeUnit unit)
Mark the component for suspending.
|
ResourceMethod.Builder |
Resource.Builder.updateMethod(ResourceMethod resourceMethod)
Get a method builder for an existing resource method.
|
Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.