Package org.omegazero.proxy.http
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
statusFields inherited from class org.omegazero.http.common.HTTPMessage
chunkedTransfer, createdTime, httpVersion, locked, otherFields inherited from class org.omegazero.http.common.HTTPHeaderContainer
headerFieldsFields inherited from class org.omegazero.common.util.SimpleAttachmentContainer
attachments -
Constructor Summary
ConstructorsConstructorDescriptionProxyHTTPResponse(int status, String version, org.omegazero.http.common.HTTPHeaderContainer headers) SeeHTTPResponse(int, String, HTTPHeaderContainer)ProxyHTTPResponse(ProxyHTTPResponse response) SeeHTTPResponse(HTTPResponse) -
Method Summary
Modifier and TypeMethodDescriptionReturns the initial HTTP version.intReturns the initial HTTP response status code.Methods inherited from class org.omegazero.http.common.HTTPResponse
getOther, getStatus, hasResponseBody, hasResponseBody, hasResponseBody, isIntermediateMessage, responseLine, setStatusMethods inherited from class org.omegazero.http.common.HTTPMessage
checkLocked, getCreatedTime, getHttpVersion, isChunkedTransfer, isLocked, lock, setChunkedTransfer, setHttpVersion, setOtherMethods 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, toStringMethods inherited from class org.omegazero.common.util.SimpleAttachmentContainer
getAttachment, hasAttachment, removeAttachment, setAttachmentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.omegazero.common.util.AttachmentContainer
requireAttachment
-
Constructor Details
-
ProxyHTTPResponse
public ProxyHTTPResponse(int status, String version, org.omegazero.http.common.HTTPHeaderContainer headers) SeeHTTPResponse(int, String, HTTPHeaderContainer)- Parameters:
status- The HTTP response status codeversion- The HTTP versionheaders- The HTTP headers
-
ProxyHTTPResponse
SeeHTTPResponse(HTTPResponse)- Parameters:
response- TheProxyHTTPResponseto copy from
-
-
Method Details
-
getInitialStatus
public int getInitialStatus()Returns the initial HTTP response status code. SeeHTTPResponse.getStatus().- Returns:
- The initial HTTP response status code
-
getInitialHttpVersion
Returns the initial HTTP version. SeeHTTPMessage.getHttpVersion().- Returns:
- The initial HTTP version
-