public class TLcdTransportRequest
extends java.lang.Object
Constructor and Description |
---|
TLcdTransportRequest(java.util.List<TLcdTransportAccessPoint> aAccessPoints,
java.util.List<TLcdPair<java.lang.String,java.lang.String>> aHeaders,
java.nio.channels.ReadableByteChannel aContent,
java.lang.String aContentType,
long aContentLength)
Creates a new request.
|
Modifier and Type | Method and Description |
---|---|
java.nio.channels.ReadableByteChannel |
getContent()
Gets the channel providing access to this request's content.
|
long |
getContentLength()
Gets the content length of this request's content.
|
java.lang.String |
getContentType()
Gets the content type of this request's content.
|
java.util.List<TLcdPair<java.lang.String,java.lang.String>> |
getHeaders()
Gets headers to add to this request.
|
java.util.List<TLcdTransportAccessPoint> |
getTransportAccessPoints()
Gets the transport access points of this request.
|
java.lang.String |
toString() |
public TLcdTransportRequest(java.util.List<TLcdTransportAccessPoint> aAccessPoints, java.util.List<TLcdPair<java.lang.String,java.lang.String>> aHeaders, java.nio.channels.ReadableByteChannel aContent, java.lang.String aContentType, long aContentLength)
headers
parameter should not contain the content-type header nor the
content-length header, which are specified via aContentType
and aContentLength
.aAccessPoints
- the access pointsaHeaders
- the headersaContent
- the contentaContentType
- the content typeaContentLength
- the content lengthpublic long getContentLength()
-1
if unspecifiedpublic java.util.List<TLcdTransportAccessPoint> getTransportAccessPoints()
null
public java.lang.String getContentType()
getContent()
.null
if unspecifiedpublic java.nio.channels.ReadableByteChannel getContent()
null
if no contentpublic java.util.List<TLcdPair<java.lang.String,java.lang.String>> getHeaders()
List
of Pairs rather than a Map
.
Note that this must not include the content-type header nor the content-length header, which are specified via getContentType()
and getContentLength()
.null
public java.lang.String toString()
toString
in class java.lang.Object