WarcRecord
, org.apache.http.HttpMessage
, org.apache.http.HttpRequest
public class HttpRequestWarcRecord extends AbstractWarcRecord implements org.apache.http.HttpRequest
WarcRecord
corresponding to a WarcRecord.Type.REQUEST
record type.WarcRecord.Type
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
HTTP_REQUEST_MSGTYPE |
USE_BURL_PROPERTY, warcHeaders
PROTOCOL_VERSION
Constructor | Description |
---|---|
HttpRequestWarcRecord(java.net.URI targetURI,
org.apache.http.HttpRequest request) |
Modifier and Type | Method | Description |
---|---|---|
static HttpRequestWarcRecord |
fromPayload(org.apache.http.message.HeaderGroup warcHeaders,
BoundSessionInputBuffer payloadBuffer) |
|
org.apache.http.ProtocolVersion |
getProtocolVersion() |
|
org.apache.http.RequestLine |
getRequestLine() |
|
java.lang.String |
toString() |
|
protected java.io.InputStream |
writePayload(ByteArraySessionOutputBuffer buffer) |
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParams
getWarcContentLength, getWarcDate, getWarcHeader, getWarcHeaders, getWarcRecordId, getWarcTargetURI, getWarcType, write, writeHeaders
public static final java.lang.String HTTP_REQUEST_MSGTYPE
public HttpRequestWarcRecord(java.net.URI targetURI, org.apache.http.HttpRequest request)
public static HttpRequestWarcRecord fromPayload(org.apache.http.message.HeaderGroup warcHeaders, BoundSessionInputBuffer payloadBuffer) throws java.io.IOException
java.io.IOException
public org.apache.http.ProtocolVersion getProtocolVersion()
getProtocolVersion
in interface org.apache.http.HttpMessage
getProtocolVersion
in class AbstractWarcRecord
public org.apache.http.RequestLine getRequestLine()
getRequestLine
in interface org.apache.http.HttpRequest
protected java.io.InputStream writePayload(ByteArraySessionOutputBuffer buffer) throws java.io.IOException
writePayload
in class AbstractWarcRecord
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object