org.glassfish.jersey.message.internal
Class OutboundJaxrsResponse.Builder
java.lang.Object
javax.ws.rs.core.Response.ResponseBuilder
org.glassfish.jersey.message.internal.OutboundJaxrsResponse.Builder
- Enclosing class:
- OutboundJaxrsResponse
public static class OutboundJaxrsResponse.Builder
- extends Response.ResponseBuilder
Outbound JAX-RS Response.ResponseBuilder implementation.
The implementation delegates method calls to an underlying
outbound message context. Upon a call to a build() method
a new instance of OutboundJaxrsResponse is produced.
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OutboundJaxrsResponse.Builder
public OutboundJaxrsResponse.Builder(Response.StatusType status,
OutboundMessageContext context)
- Create new outbound JAX-RS response builder.
- Parameters:
status - response status.context - underlying outbound message context.
build
public Response build()
- Specified by:
build in class Response.ResponseBuilder
clone
public Response.ResponseBuilder clone()
- Overrides:
clone in class Response.ResponseBuilder
status
public Response.ResponseBuilder status(Response.StatusType status)
- Overrides:
status in class Response.ResponseBuilder
status
public Response.ResponseBuilder status(int code)
- Specified by:
status in class Response.ResponseBuilder
entity
public Response.ResponseBuilder entity(java.lang.Object entity)
- Specified by:
entity in class Response.ResponseBuilder
entity
public Response.ResponseBuilder entity(java.lang.Object entity,
java.lang.annotation.Annotation[] annotations)
- Specified by:
entity in class Response.ResponseBuilder
type
public Response.ResponseBuilder type(MediaType type)
- Specified by:
type in class Response.ResponseBuilder
type
public Response.ResponseBuilder type(java.lang.String type)
- Specified by:
type in class Response.ResponseBuilder
variant
public Response.ResponseBuilder variant(Variant variant)
- Specified by:
variant in class Response.ResponseBuilder
variants
public Response.ResponseBuilder variants(java.util.List<Variant> variants)
- Specified by:
variants in class Response.ResponseBuilder
language
public Response.ResponseBuilder language(java.lang.String language)
- Specified by:
language in class Response.ResponseBuilder
language
public Response.ResponseBuilder language(java.util.Locale language)
- Specified by:
language in class Response.ResponseBuilder
location
public Response.ResponseBuilder location(java.net.URI location)
- Specified by:
location in class Response.ResponseBuilder
contentLocation
public Response.ResponseBuilder contentLocation(java.net.URI location)
- Specified by:
contentLocation in class Response.ResponseBuilder
encoding
public Response.ResponseBuilder encoding(java.lang.String encoding)
- Specified by:
encoding in class Response.ResponseBuilder
tag
public Response.ResponseBuilder tag(EntityTag tag)
- Specified by:
tag in class Response.ResponseBuilder
tag
public Response.ResponseBuilder tag(java.lang.String tag)
- Specified by:
tag in class Response.ResponseBuilder
lastModified
public Response.ResponseBuilder lastModified(java.util.Date lastModified)
- Specified by:
lastModified in class Response.ResponseBuilder
cacheControl
public Response.ResponseBuilder cacheControl(CacheControl cacheControl)
- Specified by:
cacheControl in class Response.ResponseBuilder
expires
public Response.ResponseBuilder expires(java.util.Date expires)
- Specified by:
expires in class Response.ResponseBuilder
cookie
public Response.ResponseBuilder cookie(NewCookie... cookies)
- Specified by:
cookie in class Response.ResponseBuilder
header
public Response.ResponseBuilder header(java.lang.String name,
java.lang.Object value)
- Specified by:
header in class Response.ResponseBuilder
variants
public Response.ResponseBuilder variants(Variant... variants)
- Specified by:
variants in class Response.ResponseBuilder
links
public Response.ResponseBuilder links(Link... links)
- Specified by:
links in class Response.ResponseBuilder
link
public Response.ResponseBuilder link(java.net.URI uri,
java.lang.String rel)
- Specified by:
link in class Response.ResponseBuilder
link
public Response.ResponseBuilder link(java.lang.String uri,
java.lang.String rel)
- Specified by:
link in class Response.ResponseBuilder
allow
public Response.ResponseBuilder allow(java.lang.String... methods)
- Specified by:
allow in class Response.ResponseBuilder
allow
public Response.ResponseBuilder allow(java.util.Set<java.lang.String> methods)
- Specified by:
allow in class Response.ResponseBuilder
replaceAll
public Response.ResponseBuilder replaceAll(MultivaluedMap<java.lang.String,java.lang.Object> headers)
- Specified by:
replaceAll in class Response.ResponseBuilder
Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.