public class LdpRequestImpl extends Object implements LdpRequest
| Constructor and Description |
|---|
LdpRequestImpl(HttpMethod method,
String resourceId,
AcceptList acceptList,
byte[] body,
Map<String,String> headerMap) |
| Modifier and Type | Method and Description |
|---|---|
RdfSource |
asRdfSource() |
AcceptList |
getAcceptList()
Get the list of acceptable media types
|
String |
getContentType() |
byte[] |
getEntityBody()
Get the bytes in the entity body, or null if there was no body.
|
HttpMethod |
getMethod() |
String |
getResourceId()
Get the IRI of the resource that was requested.
|
String |
getSlug()
Get the Slug header value.
|
void |
setContentType(String contentType) |
public LdpRequestImpl(HttpMethod method, String resourceId, AcceptList acceptList, byte[] body, Map<String,String> headerMap)
public HttpMethod getMethod()
getMethod in interface LdpRequestpublic String getResourceId()
LdpRequestgetResourceId in interface LdpRequestpublic AcceptList getAcceptList()
LdpRequestgetAcceptList in interface LdpRequestpublic byte[] getEntityBody()
LdpRequestgetEntityBody in interface LdpRequestpublic String getSlug()
LdpRequestgetSlug in interface LdpRequestpublic String getContentType()
getContentType in interface LdpRequestpublic void setContentType(String contentType)
setContentType in interface LdpRequestpublic RdfSource asRdfSource()
asRdfSource in interface LdpRequestCopyright © 2016. All rights reserved.