Class ProtocolResponse


  • public class ProtocolResponse
    extends Object
    • Field Detail

      • REQUEST_HEADERS_KEY

        public static final String REQUEST_HEADERS_KEY
        Key which holds the verbatim HTTP request headers in metadata (if supported by Protocol implementation and if http.store.headers is true).
        See Also:
        Constant Field Values
      • RESPONSE_HEADERS_KEY

        public static final String RESPONSE_HEADERS_KEY
        Key which holds the verbatim HTTP response headers in metadata.
        See Also:
        Constant Field Values
      • RESPONSE_IP_KEY

        public static final String RESPONSE_IP_KEY
        Key which holds the IP address of the server the request was sent to (response received from) in metadata.
        See Also:
        Constant Field Values
      • REQUEST_TIME_KEY

        public static final String REQUEST_TIME_KEY
        Key which holds the request time (begin of request) in metadata.
        See Also:
        Constant Field Values
      • PROTOCOL_VERSIONS_KEY

        public static final String PROTOCOL_VERSIONS_KEY
        Key which holds the protocol version(s) used for this request (for layered protocols this field may hold multiple comma-separated values)
        See Also:
        Constant Field Values
      • TRIMMED_RESPONSE_KEY

        public static final String TRIMMED_RESPONSE_KEY
        Metadata key which holds a boolean value in metadata whether the response content is trimmed or not.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ProtocolResponse

        public ProtocolResponse​(byte[] c,
                                int s,
                                Metadata md)
    • Method Detail

      • getContent

        public byte[] getContent()
      • getStatusCode

        public int getStatusCode()
      • getMetadata

        public Metadata getMetadata()