Top Fields Constructors Methods
org.glassfish.grizzly.http2

pack-priv Class Http2Request

extends HttpRequestPacket
implements Http2Header
Class Inheritance
All Implemented Interfaces
org.glassfish.grizzly.http2.Http2Header, org.glassfish.grizzly.http2.Http2Packet
Imports
org.glassfish.grizzly.ThreadCache, org.glassfish.grizzly.http.HttpRequestPacket, .ProcessingState, org.glassfish.grizzly.http.util.DataChunk, .Header

Author
oleksiys

Field Summary

Modifier and TypeField and Description
private static final ThreadCache.CachedTypeIndex<Http2Request>
private boolean
contentTypeParsed

Char encoding parsed flag.

private final ProcessingState
private final Http2Response
Inherited from org.glassfish.grizzly.http.HttpRequestPacket:
attributeslocalAddressClocalNameClocalPortparsedMethodREAD_ONLY_ATTR_PREFIXremoteAddressCremoteHostCremotePortunparsedHostC

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public static Http2Request
public Object
public String
public String
public Http2Stream
public ProcessingState
public String
getProtocolRequestId()

Overrides org.glassfish.grizzly.http.HttpRequestPacket.getProtocolRequestId.

Returns: an empty string if the getHttp2Stream() returns null, it's id otherwise.

private Http2Request
init()

private void
public void
protected void
requiresAcknowledgement(final boolean requiresAcknowledgement)

Overrides org.glassfish.grizzly.http.HttpRequestPacket.requiresAcknowledgement.

Allows consumers of this request to be notified if the user-agent requires acknowledgment of an expectation (i.e., the Expect header).

protected void
reset()

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

Reset the internal state.

public void
setCharacterEncoding(final String charset)

Overrides org.glassfish.grizzly.http.HttpHeader.setCharacterEncoding.

Set the character encoding of this HTTP message.

public void
public void
setUnparsedHostC(DataChunk
the unparsedHostC to set
unparsedHostC
)

Inherited from org.glassfish.grizzly.http.HttpRequestPacket:
authTypebuildercreateNotedoParseHostHeadergetAttributeNamesgetConnectiongetLocalAddressgetLocalHostgetLocalNamegetLocalPortgetMethodgetMethodDCgetNotegetNoteNamesgetQueryStringgetQueryStringDCgetRemoteAddressgetRemoteHostgetRemotePortgetRequestURIgetRequestURIRefgetResponsegetServerPortisHeadRequestisRequestlocalAddrlocalNameremoteAddrremoteHostremoteUserremoveAttributeremoveNoterequiresAcknowledgementserverNameserverNameRawsetAttributesetConnectionsetLocalHostsetLocalPortsetMethodsetMethodsetNotesetQueryStringsetRemotePortsetRequestURIsetResponsesetServerPorttoString

Field Detail

CACHE_IDXback to summary
private static final ThreadCache.CachedTypeIndex<Http2Request> CACHE_IDX
contentTypeParsedback to summary
private boolean contentTypeParsed

Char encoding parsed flag.

processingStateback to summary
private final ProcessingState processingState
responseback to summary
private final Http2Response response

Hides org.glassfish.grizzly.http.HttpRequestPacket.response.

Constructor Detail

Http2Requestback to summary
pack-priv Http2Request()

Method Detail

createback to summary
public static Http2Request create()
getAttributeback to summary
public Object getAttribute(final String name)

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

Annotations
@Override
getCharacterEncodingback to summary
public String getCharacterEncoding()

Overrides org.glassfish.grizzly.http.HttpHeader.getCharacterEncoding.

Annotations
@Override
getContentTypeback to summary
public String getContentType()

Overrides org.glassfish.grizzly.http.HttpHeader.getContentType.

Annotations
@Override
getHttp2Streamback to summary
public Http2Stream getHttp2Stream()

Implements org.glassfish.grizzly.http2.Http2Packet.getHttp2Stream.

Annotations
@Override
getProcessingStateback to summary
public ProcessingState getProcessingState()

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

Annotations
@Override
getProtocolRequestIdback to summary
public String getProtocolRequestId()

Overrides org.glassfish.grizzly.http.HttpRequestPacket.getProtocolRequestId.

Returns:String

an empty string if the getHttp2Stream() returns null, it's id otherwise.

Annotations
@Override
initback to summary
private Http2Request init()
parseContentTypeHeaderback to summary
private void parseContentTypeHeader()
recycleback to summary
public void recycle()

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

Implements org.glassfish.grizzly.Cacheable.recycle.

Annotations
@Override
requiresAcknowledgementback to summary
protected void requiresAcknowledgement(final boolean requiresAcknowledgement)

Overrides org.glassfish.grizzly.http.HttpRequestPacket.requiresAcknowledgement.

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

Allows consumers of this request to be notified if the user-agent requires acknowledgment of an expectation (i.e., the Expect header).

Annotations
@Override
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
setCharacterEncodingback to summary
public void setCharacterEncoding(final String charset)

Overrides org.glassfish.grizzly.http.HttpHeader.setCharacterEncoding.

Doc from org.glassfish.grizzly.http.HttpHeader.setCharacterEncoding.

Set the character encoding of this HTTP message.

Annotations
@Override
setExpectContentback to summary
public void setExpectContent(final boolean isExpectContent)

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

Implements org.glassfish.grizzly.http2.Http2Header.setExpectContent.

Annotations
@Override
setUnparsedHostCback to summary
public void setUnparsedHostC(DataChunk unparsedHostC)
Parameters
unparsedHostC:DataChunk

the unparsedHostC to set