Uses of Class
jakarta.ws.rs.core.Response.ResponseBuilder
| Package | Description |
|---|---|
| jakarta.ws.rs.core |
Low-level interfaces and annotations used to create RESTful service resources.
|
| jakarta.ws.rs.ext |
APIs that provide extensions to the types supported by the JAX-RS API.
|
-
Uses of Response.ResponseBuilder in jakarta.ws.rs.core
Methods in jakarta.ws.rs.core that return Response.ResponseBuilder Modifier and Type Method Description static Response.ResponseBuilderResponse. accepted()Create a new ResponseBuilder with an ACCEPTED status.static Response.ResponseBuilderResponse. accepted(Object entity)Create a new ResponseBuilder with an ACCEPTED status that contains a representation.abstract Response.ResponseBuilderResponse.ResponseBuilder. allow(String... methods)Set the list of allowed methods for the resource.abstract Response.ResponseBuilderResponse.ResponseBuilder. allow(Set<String> methods)Set the list of allowed methods for the resource.abstract Response.ResponseBuilderResponse.ResponseBuilder. cacheControl(CacheControl cacheControl)Set the cache control data of the message.abstract Response.ResponseBuilderResponse.ResponseBuilder. clone()abstract Response.ResponseBuilderResponse.ResponseBuilder. contentLocation(URI location)Set the content location.abstract Response.ResponseBuilderResponse.ResponseBuilder. cookie(NewCookie... cookies)Add cookies to the response message.static Response.ResponseBuilderResponse. created(URI location)Create a new ResponseBuilder for a created resource, set the location header using the supplied value.abstract Response.ResponseBuilderResponse.ResponseBuilder. encoding(String encoding)Set the message entity content encoding.abstract Response.ResponseBuilderResponse.ResponseBuilder. entity(Object entity)Set the response entity in the builder.abstract Response.ResponseBuilderResponse.ResponseBuilder. entity(Object entity, Annotation[] annotations)Set the response entity in the builder.Response.ResponseBuilderRequest. evaluatePreconditions()Evaluate request preconditions for a resource that does not currently exist.Response.ResponseBuilderRequest. evaluatePreconditions(EntityTag eTag)Evaluate request preconditions based on the passed in value.Response.ResponseBuilderRequest. evaluatePreconditions(Date lastModified)Evaluate request preconditions based on the passed in value.Response.ResponseBuilderRequest. evaluatePreconditions(Date lastModified, EntityTag eTag)Evaluate request preconditions based on the passed in value.abstract Response.ResponseBuilderResponse.ResponseBuilder. expires(Date expires)Set the response expiration date.static Response.ResponseBuilderResponse. fromResponse(Response response)Create a new ResponseBuilder by performing a shallow copy of an existing Response.abstract Response.ResponseBuilderResponse.ResponseBuilder. header(String name, Object value)Add an arbitrary header.abstract Response.ResponseBuilderResponse.ResponseBuilder. language(String language)Set the message entity language.abstract Response.ResponseBuilderResponse.ResponseBuilder. language(Locale language)Set the message entity language.abstract Response.ResponseBuilderResponse.ResponseBuilder. lastModified(Date lastModified)Set the response entity last modification date.abstract Response.ResponseBuilderResponse.ResponseBuilder. link(String uri, String rel)Add a link header.abstract Response.ResponseBuilderResponse.ResponseBuilder. link(URI uri, String rel)Add a link header.abstract Response.ResponseBuilderResponse.ResponseBuilder. links(Link... links)Add one or more link headers.abstract Response.ResponseBuilderResponse.ResponseBuilder. location(URI location)Set the location.protected static Response.ResponseBuilderResponse.ResponseBuilder. newInstance()Create a new builder instance.static Response.ResponseBuilderResponse. noContent()Create a new ResponseBuilder for an empty response.static Response.ResponseBuilderResponse. notAcceptable(List<Variant> variants)Create a new ResponseBuilder for a not acceptable response.static Response.ResponseBuilderResponse. notModified()Create a new ResponseBuilder with a not-modified status.static Response.ResponseBuilderResponse. notModified(EntityTag tag)Create a new ResponseBuilder with a not-modified status.static Response.ResponseBuilderResponse. notModified(String tag)Create a new ResponseBuilder with a not-modified status and a strong entity tag.static Response.ResponseBuilderResponse. ok()Create a new ResponseBuilder with an OK status.static Response.ResponseBuilderResponse. ok(Object entity)Create a new ResponseBuilder that contains a representation.static Response.ResponseBuilderResponse. ok(Object entity, MediaType type)Create a new ResponseBuilder that contains a representation.static Response.ResponseBuilderResponse. ok(Object entity, Variant variant)Create a new ResponseBuilder that contains a representation.static Response.ResponseBuilderResponse. ok(Object entity, String type)Create a new ResponseBuilder that contains a representation.abstract Response.ResponseBuilderResponse.ResponseBuilder. replaceAll(MultivaluedMap<String,Object> headers)Replaces all existing headers with the newly supplied headers.static Response.ResponseBuilderResponse. seeOther(URI location)Create a new ResponseBuilder for a redirection.static Response.ResponseBuilderResponse. serverError()Create a new ResponseBuilder with an server error status.abstract Response.ResponseBuilderResponse.ResponseBuilder. status(int status)Set the status on the ResponseBuilder.abstract Response.ResponseBuilderResponse.ResponseBuilder. status(int status, String reasonPhrase)Set the status on the ResponseBuilder.Response.ResponseBuilderResponse.ResponseBuilder. status(Response.Status status)Set the status on the ResponseBuilder.Response.ResponseBuilderResponse.ResponseBuilder. status(Response.StatusType status)Set the status on the ResponseBuilder.static Response.ResponseBuilderResponse. status(int status)Create a new ResponseBuilder with the supplied status.static Response.ResponseBuilderResponse. status(int status, String reasonPhrase)Create a new ResponseBuilder with the supplied status and reason phrase.static Response.ResponseBuilderResponse. status(Response.Status status)Create a new ResponseBuilder with the supplied status.static Response.ResponseBuilderResponse. status(Response.StatusType status)Create a new ResponseBuilder with the supplied status.abstract Response.ResponseBuilderResponse.ResponseBuilder. tag(EntityTag tag)Set a response entity tag.abstract Response.ResponseBuilderResponse.ResponseBuilder. tag(String tag)Set a strong response entity tag.static Response.ResponseBuilderResponse. temporaryRedirect(URI location)Create a new ResponseBuilder for a temporary redirection.abstract Response.ResponseBuilderResponse.ResponseBuilder. type(MediaType type)Set the message entity media type.abstract Response.ResponseBuilderResponse.ResponseBuilder. type(String type)Set the message entity media type.abstract Response.ResponseBuilderResponse.ResponseBuilder. variant(Variant variant)Set message entity representation metadata.abstract Response.ResponseBuilderResponse.ResponseBuilder. variants(Variant... variants)Add a Vary header that lists the available variants.abstract Response.ResponseBuilderResponse.ResponseBuilder. variants(List<Variant> variants)Add a Vary header that lists the available variants. -
Uses of Response.ResponseBuilder in jakarta.ws.rs.ext
Methods in jakarta.ws.rs.ext that return Response.ResponseBuilder Modifier and Type Method Description abstract Response.ResponseBuilderRuntimeDelegate. createResponseBuilder()Create a new instance of aResponse.ResponseBuilder.