Top Description Fields Constructors Methods
org.glassfish.grizzly.http.ajp

public final Class AjpHttpRequest

extends HttpRequestPacket
Class Inheritance
Imports
java.io.IOException, java.net.InetAddress, java.security.cert.CertificateFactory, .X509Certificate, java.util.logging.Level, .Logger, org.glassfish.grizzly.Grizzly, .ThreadCache, org.glassfish.grizzly.http.HttpRequestPacket, .ProcessingState, org.glassfish.grizzly.http.util.BufferChunk, .DataChunk, org.glassfish.grizzly.ssl.SSLSupport, org.glassfish.grizzly.utils.BufferInputStream

HttpRequestPacket implementation, which also contains AJP related meta data.
Author
Alexey Stashok

Field Summary

Modifier and TypeField and Description
private static final ThreadCache.CachedTypeIndex<AjpHttpRequest>
private final AjpHttpResponse
private int
private final DataChunk
private static final Logger
pack-priv final ProcessingState
private String
private final DataChunk
pack-priv final DataChunk
Inherited from org.glassfish.grizzly.http.HttpRequestPacket:
attributeslocalAddressClocalNameClocalPortparsedMethodREAD_ONLY_ATTR_PREFIXremoteAddressCremoteHostCremotePortunparsedHostC

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static AjpHttpRequest
protected void
public Object
public int
public int
public ProcessingState
public int
pack-priv String
private AjpHttpRequest
init()

public DataChunk

Returns:

the instance id
instanceId
()

Get the instance id (or JVM route).

public DataChunk
public DataChunk
public void
public DataChunk
public DataChunk
public DataChunk
remoteHostRaw()

Returns: the current remote host value.

protected void
reset()

Overrides org.glassfish.grizzly.http.HttpRequestPacket.reset.

Reset the internal state.

public void
setContentBytesRemaining(final int contentBytesRemaining)

public void
pack-priv void
setSecret(final String secret)

pack-priv void
pack-priv DataChunk
Inherited from org.glassfish.grizzly.http.HttpRequestPacket:
authTypebuildercreateNotegetAttributeNamesgetConnectiongetLocalAddressgetLocalHostgetLocalNamegetMethodgetMethodDCgetNotegetNoteNamesgetProtocolRequestIdgetQueryStringgetQueryStringDCgetRemoteAddressgetRemoteHostgetRequestURIgetRequestURIRefgetResponsegetServerPortisHeadRequestisRequestremoteUserremoveAttributeremoveNoterequiresAcknowledgementrequiresAcknowledgementserverNameserverNameRawsetAttributesetConnectionsetLocalHostsetLocalPortsetMethodsetMethodsetNotesetQueryStringsetRemotePortsetRequestURIsetResponsesetServerPorttoString

Field Detail

CACHE_IDXback to summary
private static final ThreadCache.CachedTypeIndex<AjpHttpRequest> CACHE_IDX
cachedResponseback to summary
private final AjpHttpResponse cachedResponse
contentBytesRemainingback to summary
private int contentBytesRemaining
instanceIdback to summary
private final DataChunk instanceId
LOGGERback to summary
private static final Logger LOGGER
processingStateback to summary
pack-priv final ProcessingState processingState
secretback to summary
private String secret
sslCertback to summary
private final DataChunk sslCert
tmpDataChunkback to summary
pack-priv final DataChunk tmpDataChunk

Constructor Detail

AjpHttpRequestback to summary
private AjpHttpRequest()

Method Detail

createback to summary
public static AjpHttpRequest create()
doParseHostHeaderback to summary
protected void doParseHostHeader()

Overrides org.glassfish.grizzly.http.HttpRequestPacket.doParseHostHeader.

Annotations
@Override
getAttributeback to summary
public Object getAttribute(final String name)

Overrides org.glassfish.grizzly.http.HttpRequestPacket.getAttribute.

Annotations
@Override
getContentBytesRemainingback to summary
public int getContentBytesRemaining()
getLocalPortback to summary
public int getLocalPort()

Overrides org.glassfish.grizzly.http.HttpRequestPacket.getLocalPort.

Annotations
@Override
getProcessingStateback to summary
public ProcessingState getProcessingState()

Implements abstract org.glassfish.grizzly.http.HttpHeader.getProcessingState.

Annotations
@Override
getRemotePortback to summary
public int getRemotePort()

Overrides org.glassfish.grizzly.http.HttpRequestPacket.getRemotePort.

Annotations
@Override
getSecretback to summary
pack-priv String getSecret()
initback to summary
private AjpHttpRequest init()
instanceIdback to summary
public 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:DataChunk

the instance id

localAddrback to summary
public DataChunk localAddr()

Overrides org.glassfish.grizzly.http.HttpRequestPacket.localAddr.

Annotations
@Override
localNameback to summary
public DataChunk localName()

Overrides org.glassfish.grizzly.http.HttpRequestPacket.localName.

Annotations
@Override
recycleback to summary
public void recycle()

Overrides org.glassfish.grizzly.http.HttpHeader.recycle.

Implements org.glassfish.grizzly.Cacheable.recycle.

Annotations
@Override
remoteAddrback to summary
public DataChunk remoteAddr()

Overrides org.glassfish.grizzly.http.HttpRequestPacket.remoteAddr.

Annotations
@Override
remoteHostback to summary
public DataChunk remoteHost()

Overrides org.glassfish.grizzly.http.HttpRequestPacket.remoteHost.

Annotations
@Override
remoteHostRawback to summary
public DataChunk remoteHostRaw()
Returns:DataChunk

the current remote host value. Unlike remoteHost(), this method doesn't try to resolve the host name based on the current remoteAddr() value

resetback to summary
protected void reset()

Overrides org.glassfish.grizzly.http.HttpRequestPacket.reset.

Doc from org.glassfish.grizzly.http.HttpRequestPacket.reset.

Reset the internal state.

Annotations
@Override
setContentBytesRemainingback to summary
public void setContentBytesRemaining(final int contentBytesRemaining)
setExpectContentback to summary
public void setExpectContent(boolean isExpectContent)

Overrides org.glassfish.grizzly.http.HttpHeader.setExpectContent.

Annotations
@Override
setSecretback to summary
pack-priv void setSecret(final String secret)
setUnparsedHostHeaderback to summary
pack-priv void setUnparsedHostHeader(final DataChunk hostValue)
sslCertback to summary
pack-priv DataChunk sslCert()