Class ResponseBuilderImpl

java.lang.Object
jakarta.ws.rs.core.Response.ResponseBuilder
org.jboss.resteasy.specimpl.ResponseBuilderImpl

public class ResponseBuilderImpl extends jakarta.ws.rs.core.Response.ResponseBuilder
Version:
$Revision: 1 $
Author:
Bill Burke
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected Object
     
    protected Annotation[]
     
    protected Headers<Object>
     
    protected String
     
    protected int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    jakarta.ws.rs.core.Response.ResponseBuilder
    allow(String... methods)
     
    jakarta.ws.rs.core.Response.ResponseBuilder
    allow(Set<String> methods)
     
    jakarta.ws.rs.core.Response
     
    jakarta.ws.rs.core.Response.ResponseBuilder
    cacheControl(jakarta.ws.rs.core.CacheControl cacheControl)
     
    jakarta.ws.rs.core.Response.ResponseBuilder
     
    jakarta.ws.rs.core.Response.ResponseBuilder
    contentLocation(URI location)
     
    jakarta.ws.rs.core.Response.ResponseBuilder
    cookie(jakarta.ws.rs.core.NewCookie... cookies)
     
    static String
    createVaryHeader(List<jakarta.ws.rs.core.Variant> variants)
     
    jakarta.ws.rs.core.Response.ResponseBuilder
    encoding(String encoding)
     
    jakarta.ws.rs.core.Response.ResponseBuilder
    entity(Object entity)
     
    jakarta.ws.rs.core.Response.ResponseBuilder
    entity(Object entity, Annotation[] annotations)
     
    jakarta.ws.rs.core.Response.ResponseBuilder
    expires(Date expires)
     
     
    jakarta.ws.rs.core.Response.ResponseBuilder
    header(String name, Object value)
     
    jakarta.ws.rs.core.Response.ResponseBuilder
    language(String language)
     
    jakarta.ws.rs.core.Response.ResponseBuilder
    language(Locale language)
     
    jakarta.ws.rs.core.Response.ResponseBuilder
    lastModified(Date lastModified)
     
    jakarta.ws.rs.core.Response.ResponseBuilder
    link(String uri, String rel)
     
    jakarta.ws.rs.core.Response.ResponseBuilder
    link(URI uri, String rel)
     
    jakarta.ws.rs.core.Response.ResponseBuilder
    links(jakarta.ws.rs.core.Link... links)
     
    jakarta.ws.rs.core.Response.ResponseBuilder
    location(URI location)
     
    jakarta.ws.rs.core.Response.ResponseBuilder
    replaceAll(jakarta.ws.rs.core.MultivaluedMap<String,Object> headers)
     
    jakarta.ws.rs.core.Response.ResponseBuilder
    status(int status)
     
    jakarta.ws.rs.core.Response.ResponseBuilder
    status(int status, String reasonPhrase)
     
    jakarta.ws.rs.core.Response.ResponseBuilder
    tag(jakarta.ws.rs.core.EntityTag tag)
     
    jakarta.ws.rs.core.Response.ResponseBuilder
    tag(String tag)
     
    jakarta.ws.rs.core.Response.ResponseBuilder
    type(jakarta.ws.rs.core.MediaType type)
     
    jakarta.ws.rs.core.Response.ResponseBuilder
    type(String type)
     
    jakarta.ws.rs.core.Response.ResponseBuilder
    variant(jakarta.ws.rs.core.Variant variant)
     
    jakarta.ws.rs.core.Response.ResponseBuilder
    variants(jakarta.ws.rs.core.Variant... variants)
     
    jakarta.ws.rs.core.Response.ResponseBuilder
    variants(List<jakarta.ws.rs.core.Variant> variants)
     

    Methods inherited from class jakarta.ws.rs.core.Response.ResponseBuilder

    newInstance, status, status

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • entity

      protected Object entity
    • entityAnnotations

      protected Annotation[] entityAnnotations
    • status

      protected int status
    • reasonPhrase

      protected String reasonPhrase
    • metadata

      protected Headers<Object> metadata
  • Constructor Details

    • ResponseBuilderImpl

      public ResponseBuilderImpl()
  • Method Details

    • build

      public jakarta.ws.rs.core.Response build()
      Specified by:
      build in class jakarta.ws.rs.core.Response.ResponseBuilder
    • clone

      public jakarta.ws.rs.core.Response.ResponseBuilder clone()
      Specified by:
      clone in class jakarta.ws.rs.core.Response.ResponseBuilder
    • status

      public jakarta.ws.rs.core.Response.ResponseBuilder status(int status, String reasonPhrase)
      Specified by:
      status in class jakarta.ws.rs.core.Response.ResponseBuilder
    • status

      public jakarta.ws.rs.core.Response.ResponseBuilder status(int status)
      Specified by:
      status in class jakarta.ws.rs.core.Response.ResponseBuilder
    • entity

      public jakarta.ws.rs.core.Response.ResponseBuilder entity(Object entity)
      Specified by:
      entity in class jakarta.ws.rs.core.Response.ResponseBuilder
    • entity

      public jakarta.ws.rs.core.Response.ResponseBuilder entity(Object entity, Annotation[] annotations)
      Specified by:
      entity in class jakarta.ws.rs.core.Response.ResponseBuilder
    • type

      public jakarta.ws.rs.core.Response.ResponseBuilder type(jakarta.ws.rs.core.MediaType type)
      Specified by:
      type in class jakarta.ws.rs.core.Response.ResponseBuilder
    • type

      public jakarta.ws.rs.core.Response.ResponseBuilder type(String type)
      Specified by:
      type in class jakarta.ws.rs.core.Response.ResponseBuilder
    • variant

      public jakarta.ws.rs.core.Response.ResponseBuilder variant(jakarta.ws.rs.core.Variant variant)
      Specified by:
      variant in class jakarta.ws.rs.core.Response.ResponseBuilder
    • variants

      public jakarta.ws.rs.core.Response.ResponseBuilder variants(List<jakarta.ws.rs.core.Variant> variants)
      Specified by:
      variants in class jakarta.ws.rs.core.Response.ResponseBuilder
    • createVaryHeader

      public static String createVaryHeader(List<jakarta.ws.rs.core.Variant> variants)
    • language

      public jakarta.ws.rs.core.Response.ResponseBuilder language(String language)
      Specified by:
      language in class jakarta.ws.rs.core.Response.ResponseBuilder
    • location

      public jakarta.ws.rs.core.Response.ResponseBuilder location(URI location)
      Specified by:
      location in class jakarta.ws.rs.core.Response.ResponseBuilder
    • contentLocation

      public jakarta.ws.rs.core.Response.ResponseBuilder contentLocation(URI location)
      Specified by:
      contentLocation in class jakarta.ws.rs.core.Response.ResponseBuilder
    • tag

      public jakarta.ws.rs.core.Response.ResponseBuilder tag(jakarta.ws.rs.core.EntityTag tag)
      Specified by:
      tag in class jakarta.ws.rs.core.Response.ResponseBuilder
    • tag

      public jakarta.ws.rs.core.Response.ResponseBuilder tag(String tag)
      Specified by:
      tag in class jakarta.ws.rs.core.Response.ResponseBuilder
    • lastModified

      public jakarta.ws.rs.core.Response.ResponseBuilder lastModified(Date lastModified)
      Specified by:
      lastModified in class jakarta.ws.rs.core.Response.ResponseBuilder
    • cacheControl

      public jakarta.ws.rs.core.Response.ResponseBuilder cacheControl(jakarta.ws.rs.core.CacheControl cacheControl)
      Specified by:
      cacheControl in class jakarta.ws.rs.core.Response.ResponseBuilder
    • header

      public jakarta.ws.rs.core.Response.ResponseBuilder header(String name, Object value)
      Specified by:
      header in class jakarta.ws.rs.core.Response.ResponseBuilder
    • cookie

      public jakarta.ws.rs.core.Response.ResponseBuilder cookie(jakarta.ws.rs.core.NewCookie... cookies)
      Specified by:
      cookie in class jakarta.ws.rs.core.Response.ResponseBuilder
    • language

      public jakarta.ws.rs.core.Response.ResponseBuilder language(Locale language)
      Specified by:
      language in class jakarta.ws.rs.core.Response.ResponseBuilder
    • getDateFormatRFC822

      public static SimpleDateFormat getDateFormatRFC822()
    • expires

      public jakarta.ws.rs.core.Response.ResponseBuilder expires(Date expires)
      Specified by:
      expires in class jakarta.ws.rs.core.Response.ResponseBuilder
    • allow

      public jakarta.ws.rs.core.Response.ResponseBuilder allow(String... methods)
      Specified by:
      allow in class jakarta.ws.rs.core.Response.ResponseBuilder
    • allow

      public jakarta.ws.rs.core.Response.ResponseBuilder allow(Set<String> methods)
      Specified by:
      allow in class jakarta.ws.rs.core.Response.ResponseBuilder
    • encoding

      public jakarta.ws.rs.core.Response.ResponseBuilder encoding(String encoding)
      Specified by:
      encoding in class jakarta.ws.rs.core.Response.ResponseBuilder
    • variants

      public jakarta.ws.rs.core.Response.ResponseBuilder variants(jakarta.ws.rs.core.Variant... variants)
      Specified by:
      variants in class jakarta.ws.rs.core.Response.ResponseBuilder
    • links

      public jakarta.ws.rs.core.Response.ResponseBuilder links(jakarta.ws.rs.core.Link... links)
      Specified by:
      links in class jakarta.ws.rs.core.Response.ResponseBuilder
    • link

      public jakarta.ws.rs.core.Response.ResponseBuilder link(URI uri, String rel)
      Specified by:
      link in class jakarta.ws.rs.core.Response.ResponseBuilder
    • link

      public jakarta.ws.rs.core.Response.ResponseBuilder link(String uri, String rel)
      Specified by:
      link in class jakarta.ws.rs.core.Response.ResponseBuilder
    • replaceAll

      public jakarta.ws.rs.core.Response.ResponseBuilder replaceAll(jakarta.ws.rs.core.MultivaluedMap<String,Object> headers)
      Specified by:
      replaceAll in class jakarta.ws.rs.core.Response.ResponseBuilder