public final class AjpHttpRequest extends HttpRequestPacket
HttpRequestPacket
implementation, which also contains AJP
related meta data.HttpRequestPacket.Builder
attributes, localAddressC, localNameC, localPort, parsedMethod, remoteAddressC, remoteHostC, remotePort
characterEncoding, charsetSet, contentLength, contentType, headers, isChunked, isCommitted, isContentBroken, isExpectContent, isSkipRemainder, parsedProtocol, protocolC, quotedCharsetValue, secure, upgrade
Modifier and Type | Method and Description |
---|---|
static AjpHttpRequest |
create() |
Object |
getAttribute(String name)
Return the specified request attribute if it exists; otherwise, return
null . |
int |
getContentBytesRemaining() |
int |
getLocalPort() |
ProcessingState |
getProcessingState() |
int |
getRemotePort() |
DataChunk |
instanceId()
Get the instance id (or JVM route).
|
DataChunk |
localAddr() |
DataChunk |
localName() |
void |
recycle() |
DataChunk |
remoteAddr() |
DataChunk |
remoteHost() |
protected void |
reset()
Reset the internal state.
|
void |
setContentBytesRemaining(int contentBytesRemaining) |
void |
setExpectContent(boolean isExpectContent) |
authType, builder, createNote, getAttributeNames, getConnection, getLocalAddress, getLocalHost, getLocalName, getMethod, getMethodDC, getNote, getNoteNames, getQueryString, getQueryStringDC, getRemoteAddress, getRemoteHost, getRequestURI, getRequestURIRef, getResponse, getServerPort, isHeadRequest, isRequest, remoteUser, removeAttribute, removeNote, requiresAcknowledgement, requiresAcknowledgement, serverName, setAttribute, setConnection, setLocalHost, setLocalPort, setMethod, setMethod, setNote, setQueryString, setRemotePort, setRequestURI, setResponse, setServerPort, toString
addContentEncoding, addHeader, addHeader, containsHeader, containsHeader, extractContentEncoding, flushSpecialHeaders, getAttributes, getCharacterEncoding, getContentEncodings, getContentEncodings, getContentLength, getContentType, getHeader, getHeader, getHeaders, getHttpHeader, getProtocol, getProtocolDC, getProtocolString, getTempHeaderEncodingBuffer, getTransferEncoding, getUpgrade, getUpgradeDC, handleGetSpecialHeader, handleGetSpecialHeader, handleSetSpecialHeaders, handleSetSpecialHeaders, httpContentBuilder, httpTrailerBuilder, isChunked, isChunkingAllowed, isCommitted, isContentBroken, isContentEncodingsSelected, isContentTypeSet, isExpectContent, isHeader, isSecure, isSkipRemainder, isSpecialHeader, makeContentLengthHeader, makeTransferEncodingHeader, makeUpgradeHeader, setCharacterEncoding, setChunked, setChunkingAllowed, setCommitted, setContentBroken, setContentEncodingsSelected, setContentLength, setContentLengthLong, setContentType, setHeader, setHeader, setProtocol, setSecure, setSkipRemainder, setTransferEncoding, setUpgrade
isHttp
public static AjpHttpRequest create()
public Object getAttribute(String name)
HttpRequestPacket
null
.getAttribute
in class HttpRequestPacket
name
- Name of the request attribute to returnpublic int getLocalPort()
getLocalPort
in class HttpRequestPacket
public int getRemotePort()
getRemotePort
in class HttpRequestPacket
public DataChunk localAddr()
localAddr
in class HttpRequestPacket
DataChunk
representing the Internet Protocol (IP)
address of the interface on which the request was received.public DataChunk localName()
localName
in class HttpRequestPacket
DataChunk
representing the host name of the
Internet Protocol (IP) interface on which the request was received.public DataChunk remoteAddr()
remoteAddr
in class HttpRequestPacket
DataChunk
representing the Internet Protocol (IP)
address of the client or last proxy that sent the request.public DataChunk remoteHost()
remoteHost
in class HttpRequestPacket
DataChunk
representing the fully qualified
name of the client or the last proxy that sent the request. If the
engine cannot or chooses not to resolve the host name (to improve
performance), this method returns the the IP address.public DataChunk instanceId()
public ProcessingState getProcessingState()
getProcessingState
in class HttpHeader
public int getContentBytesRemaining()
public void setContentBytesRemaining(int contentBytesRemaining)
public void setExpectContent(boolean isExpectContent)
setExpectContent
in class HttpHeader
protected void reset()
HttpRequestPacket
reset
in class HttpRequestPacket
public void recycle()
HttpHeader
recycle
in interface Cacheable
recycle
in class HttpHeader
Copyright © 2014 Oracle Corporation. All rights reserved.