Class ProxyHTTPResponse

java.lang.Object
org.omegazero.common.util.SimpleAttachmentContainer
org.omegazero.http.common.HTTPHeaderContainer
org.omegazero.http.common.HTTPMessage
org.omegazero.http.common.HTTPResponse
org.omegazero.proxy.http.ProxyHTTPResponse
All Implemented Interfaces:
Serializable, org.omegazero.common.util.AttachmentContainer

public class ProxyHTTPResponse extends org.omegazero.http.common.HTTPResponse
A HTTPResponse that stores the initial response line values.

The getInitial* methods in this class are not affected by their corresponding set* methods.

Since:
3.6.1
See Also:
  • Field Summary

    Fields inherited from class org.omegazero.http.common.HTTPResponse

    status

    Fields inherited from class org.omegazero.http.common.HTTPMessage

    chunkedTransfer, createdTime, httpVersion, locked, other

    Fields inherited from class org.omegazero.http.common.HTTPHeaderContainer

    headerFields

    Fields inherited from class org.omegazero.common.util.SimpleAttachmentContainer

    attachments
  • Constructor Summary

    Constructors
    Constructor
    Description
    ProxyHTTPResponse(int status, String version, org.omegazero.http.common.HTTPHeaderContainer headers)
    See HTTPResponse(int, String, HTTPHeaderContainer)
    See HTTPResponse(HTTPResponse)
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the initial HTTP version.
    int
    Returns the initial HTTP response status code.

    Methods inherited from class org.omegazero.http.common.HTTPResponse

    getOther, getStatus, hasResponseBody, hasResponseBody, hasResponseBody, isIntermediateMessage, responseLine, setStatus

    Methods inherited from class org.omegazero.http.common.HTTPMessage

    checkLocked, getCreatedTime, getHttpVersion, isChunkedTransfer, isLocked, lock, setChunkedTransfer, setHttpVersion, setOther

    Methods inherited from class org.omegazero.http.common.HTTPHeaderContainer

    addHeader, addHeader, appendHeader, appendHeader, appendHeader, deleteHeader, deleteHeader, editHeader, extractHeader, extractHeaders, fromLegacy, getHeader, getHeader, getHeader, getHeader, getHeaderCount, headerExists, headerIterator, headerNameCount, headerNameSet, headers, headerSet, setHeader, toString

    Methods inherited from class org.omegazero.common.util.SimpleAttachmentContainer

    getAttachment, hasAttachment, removeAttachment, setAttachment

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.omegazero.common.util.AttachmentContainer

    requireAttachment
  • Constructor Details

    • ProxyHTTPResponse

      public ProxyHTTPResponse(int status, String version, org.omegazero.http.common.HTTPHeaderContainer headers)
      See HTTPResponse(int, String, HTTPHeaderContainer)
      Parameters:
      status - The HTTP response status code
      version - The HTTP version
      headers - The HTTP headers
    • ProxyHTTPResponse

      public ProxyHTTPResponse(ProxyHTTPResponse response)
      See HTTPResponse(HTTPResponse)
      Parameters:
      response - The ProxyHTTPResponse to copy from
  • Method Details

    • getInitialStatus

      public int getInitialStatus()
      Returns the initial HTTP response status code. See HTTPResponse.getStatus().
      Returns:
      The initial HTTP response status code
    • getInitialHttpVersion

      public String getInitialHttpVersion()
      Returns the initial HTTP version. See HTTPMessage.getHttpVersion().
      Returns:
      The initial HTTP version