public class TLcdTransportRequest extends Object
Constructor and Description |
---|
TLcdTransportRequest(List<TLcdTransportAccessPoint> aAccessPoints,
List<TLcdPair<String,String>> aHeaders,
ReadableByteChannel aContent,
String aContentType,
long aContentLength)
Creates a new request.
|
Modifier and Type | Method and Description |
---|---|
ReadableByteChannel |
getContent()
Gets the channel providing access to this request's content.
|
long |
getContentLength()
Gets the content length of this request's content.
|
String |
getContentType()
Gets the content type of this request's content.
|
List<TLcdPair<String,String>> |
getHeaders()
Gets headers to add to this request.
|
List<TLcdTransportAccessPoint> |
getTransportAccessPoints()
Gets the transport access points of this request.
|
String |
toString() |
public TLcdTransportRequest(List<TLcdTransportAccessPoint> aAccessPoints, List<TLcdPair<String,String>> aHeaders, ReadableByteChannel aContent, 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 List<TLcdTransportAccessPoint> getTransportAccessPoints()
null
public String getContentType()
getContent()
.null
if unspecifiedpublic ReadableByteChannel getContent()
null
if no contentpublic List<TLcdPair<String,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