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, unparsedHostC

    Fields inherited from class org.glassfish.grizzly.http.HttpHeader

    contentLength, contentType, headers, isChunked, isCommitted, isContentBroken, isExpectContent, isSkipRemainder, parsedProtocol, protocolC, secure, upgrade
  • Method Summary

    Modifier and Type
    Method
    Description
     
    protected void
     
     
    int
     
    int
    org.glassfish.grizzly.http.ProcessingState
     
    int
    org.glassfish.grizzly.http.util.DataChunk
    Get the instance id (or JVM route).
    org.glassfish.grizzly.http.util.DataChunk
    org.glassfish.grizzly.http.util.DataChunk
    void
     
    org.glassfish.grizzly.http.util.DataChunk
    org.glassfish.grizzly.http.util.DataChunk
    org.glassfish.grizzly.http.util.DataChunk
     
    protected void
     
    void
    setContentBytesRemaining(int contentBytesRemaining)
     
    void
    setExpectContent(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, toString

    Methods 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, setUpgrade

    Methods inherited from class org.glassfish.grizzly.http.HttpPacket

    isHttp

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Method Details

    • create

      public static AjpHttpRequest create()
    • getAttribute

      public Object getAttribute(String name)
      Overrides:
      getAttribute in class org.glassfish.grizzly.http.HttpRequestPacket
    • getLocalPort

      public int getLocalPort()
      Overrides:
      getLocalPort in class org.glassfish.grizzly.http.HttpRequestPacket
    • getRemotePort

      public int getRemotePort()
      Overrides:
      getRemotePort in class org.glassfish.grizzly.http.HttpRequestPacket
    • localAddr

      public org.glassfish.grizzly.http.util.DataChunk localAddr()
      Overrides:
      localAddr in class org.glassfish.grizzly.http.HttpRequestPacket
    • localName

      public org.glassfish.grizzly.http.util.DataChunk localName()
      Overrides:
      localName in class org.glassfish.grizzly.http.HttpRequestPacket
    • remoteAddr

      public org.glassfish.grizzly.http.util.DataChunk remoteAddr()
      Overrides:
      remoteAddr in class org.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 current remoteAddr() value
    • remoteHost

      public org.glassfish.grizzly.http.util.DataChunk remoteHost()
      Overrides:
      remoteHost in class org.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:
      getProcessingState in class org.glassfish.grizzly.http.HttpHeader
    • getContentBytesRemaining

      public int getContentBytesRemaining()
    • setContentBytesRemaining

      public void setContentBytesRemaining(int contentBytesRemaining)
    • setExpectContent

      public void setExpectContent(boolean isExpectContent)
      Overrides:
      setExpectContent in class org.glassfish.grizzly.http.HttpHeader
    • doParseHostHeader

      protected void doParseHostHeader()
      Overrides:
      doParseHostHeader in class org.glassfish.grizzly.http.HttpRequestPacket
    • reset

      protected void reset()
      Overrides:
      reset in class org.glassfish.grizzly.http.HttpRequestPacket
    • recycle

      public void recycle()
      Specified by:
      recycle in interface org.glassfish.grizzly.Cacheable
      Overrides:
      recycle in class org.glassfish.grizzly.http.HttpHeader