Package org.glassfish.grizzly.http.ajp
Class AjpHttpRequest
java.lang.Object
org.glassfish.grizzly.http.HttpPacket
org.glassfish.grizzly.http.HttpHeader
org.glassfish.grizzly.http.HttpRequestPacket
org.glassfish.grizzly.http.ajp.AjpHttpRequest
- All Implemented Interfaces:
org.glassfish.grizzly.attributes.AttributeStorage,org.glassfish.grizzly.Cacheable,org.glassfish.grizzly.http.MimeHeadersPacket
public final class AjpHttpRequest
extends org.glassfish.grizzly.http.HttpRequestPacket
HttpRequestPacket implementation, which also contains AJP
related meta data.- Author:
- Alexey Stashok
-
Nested Class Summary
Nested classes/interfaces inherited from class org.glassfish.grizzly.http.HttpRequestPacket
org.glassfish.grizzly.http.HttpRequestPacket.Builder -
Field Summary
Fields inherited from class org.glassfish.grizzly.http.HttpRequestPacket
attributes, localAddressC, localNameC, localPort, parsedMethod, READ_ONLY_ATTR_PREFIX, remoteAddressC, remoteHostC, remotePort, unparsedHostCFields inherited from class org.glassfish.grizzly.http.HttpHeader
contentLength, contentType, headers, isChunked, isCommitted, isContentBroken, isExpectContent, isSkipRemainder, parsedProtocol, protocolC, secure, upgrade -
Method Summary
Modifier and TypeMethodDescriptionstatic AjpHttpRequestcreate()protected voidgetAttribute(String name) intintorg.glassfish.grizzly.http.ProcessingStateintorg.glassfish.grizzly.http.util.DataChunkGet the instance id (or JVM route).org.glassfish.grizzly.http.util.DataChunkorg.glassfish.grizzly.http.util.DataChunkvoidrecycle()org.glassfish.grizzly.http.util.DataChunkorg.glassfish.grizzly.http.util.DataChunkorg.glassfish.grizzly.http.util.DataChunkprotected voidreset()voidsetContentBytesRemaining(int contentBytesRemaining) voidsetExpectContent(boolean isExpectContent) Methods inherited from class org.glassfish.grizzly.http.HttpRequestPacket
authType, builder, createNote, getAttributeNames, getConnection, getLocalAddress, getLocalHost, getLocalName, getMethod, getMethodDC, getNote, getNoteNames, getQueryString, getQueryStringDC, getRemoteAddress, getRemoteHost, getRequestURI, getRequestURIRef, getResponse, getServerPort, isHeadRequest, isRequest, makeContentLengthHeader, remoteUser, removeAttribute, removeNote, requiresAcknowledgement, requiresAcknowledgement, serverName, serverNameRaw, setAttribute, setConnection, setLocalHost, setLocalPort, setMethod, setMethod, setNote, setQueryString, setRemotePort, setRequestURI, setResponse, setServerPort, toStringMethods inherited from class org.glassfish.grizzly.http.HttpHeader
addContentEncoding, addHeader, addHeader, addHeader, addHeader, containsHeader, containsHeader, extractContentEncoding, flushSpecialHeaders, getAttributes, getCharacterEncoding, getContentEncodings, getContentEncodings, getContentLength, getContentType, getContentTypeHolder, getHeader, getHeader, getHeaders, getHttpHeader, getParsingState, getProtocol, getProtocolDC, getProtocolString, getTempHeaderEncodingBuffer, getTransferEncoding, getUpgrade, getUpgradeDC, httpContentBuilder, httpTrailerBuilder, isChunked, isChunkingAllowed, isCommitted, isContentBroken, isContentEncodingsSelected, isContentTypeSet, isExpectContent, isHeader, isIgnoreContentModifiers, isSecure, isSkipRemainder, isUpgrade, makeTransferEncodingHeader, makeUpgradeHeader, setCharacterEncoding, setChunked, setChunkingAllowed, setCommitted, setContentBroken, setContentEncodingsSelected, setContentLength, setContentLengthLong, setContentType, setContentType, setHeader, setHeader, setHeader, setHeader, setIgnoreContentModifiers, setProtocol, setSecure, setSkipRemainder, setTransferEncoding, setUpgradeMethods inherited from class org.glassfish.grizzly.http.HttpPacket
isHttp
-
Method Details
-
create
-
getAttribute
- Overrides:
getAttributein classorg.glassfish.grizzly.http.HttpRequestPacket
-
getLocalPort
public int getLocalPort()- Overrides:
getLocalPortin classorg.glassfish.grizzly.http.HttpRequestPacket
-
getRemotePort
public int getRemotePort()- Overrides:
getRemotePortin classorg.glassfish.grizzly.http.HttpRequestPacket
-
localAddr
public org.glassfish.grizzly.http.util.DataChunk localAddr()- Overrides:
localAddrin classorg.glassfish.grizzly.http.HttpRequestPacket
-
localName
public org.glassfish.grizzly.http.util.DataChunk localName()- Overrides:
localNamein classorg.glassfish.grizzly.http.HttpRequestPacket
-
remoteAddr
public org.glassfish.grizzly.http.util.DataChunk remoteAddr()- Overrides:
remoteAddrin classorg.glassfish.grizzly.http.HttpRequestPacket
-
remoteHostRaw
public org.glassfish.grizzly.http.util.DataChunk remoteHostRaw()- Returns:
- the current remote host value. Unlike
remoteHost(), this method doesn't try to resolve the host name based on the currentremoteAddr()value
-
remoteHost
public org.glassfish.grizzly.http.util.DataChunk remoteHost()- Overrides:
remoteHostin classorg.glassfish.grizzly.http.HttpRequestPacket
-
instanceId
public org.glassfish.grizzly.http.util.DataChunk instanceId()Get the instance id (or JVM route). Currently Ajp is sending it with each request. In future this should be fixed, and sent only once ( or 'negotiated' at config time so both tomcat and apache share the same name.- Returns:
- the instance id
-
getProcessingState
public org.glassfish.grizzly.http.ProcessingState getProcessingState()- Specified by:
getProcessingStatein classorg.glassfish.grizzly.http.HttpHeader
-
getContentBytesRemaining
public int getContentBytesRemaining() -
setContentBytesRemaining
public void setContentBytesRemaining(int contentBytesRemaining) -
setExpectContent
public void setExpectContent(boolean isExpectContent) - Overrides:
setExpectContentin classorg.glassfish.grizzly.http.HttpHeader
-
doParseHostHeader
protected void doParseHostHeader()- Overrides:
doParseHostHeaderin classorg.glassfish.grizzly.http.HttpRequestPacket
-
reset
protected void reset()- Overrides:
resetin classorg.glassfish.grizzly.http.HttpRequestPacket
-
recycle
public void recycle()- Specified by:
recyclein interfaceorg.glassfish.grizzly.Cacheable- Overrides:
recyclein classorg.glassfish.grizzly.http.HttpHeader
-