public interface ILDPResource
Modifier and Type | Method and Description |
---|---|
void |
delete()
Delete the specified member resource and remove it from the container.
|
javax.ws.rs.core.Response |
get(String contentType,
javax.ws.rs.core.MultivaluedMap<String,String> preferences)
Get the current state of resource with the specified content type.
|
Set<String> |
getAllowedMethods()
Returns the allowed HTTP methods for this resource as defined in RFC 2616.
|
Object |
getModel() |
String |
getTypeURI() |
String |
getURI() |
javax.ws.rs.core.Response |
options() |
void |
patch(String resourceURI,
InputStream stream,
String contentType,
String user) |
void |
putUpdate(InputStream stream,
String contentType,
String user,
javax.ws.rs.core.HttpHeaders requestHeaders)
Updates state of the resource with the contents of the specified stream.
|
void |
setModel(Object model) |
void |
setURI(String resourceURI) |
String getURI()
void setURI(String resourceURI)
Object getModel()
void setModel(Object model)
String getTypeURI()
void putUpdate(InputStream stream, String contentType, String user, javax.ws.rs.core.HttpHeaders requestHeaders)
The Content-Type of the input stream is specified by the
contentType
argument.
stream
- the input stream containing the resource representation.contentType
- the Content-Type of the input stream.requestHeaders
- the HTTP request headersvoid patch(String resourceURI, InputStream stream, String contentType, String user)
void delete()
javax.ws.rs.core.Response get(String contentType, javax.ws.rs.core.MultivaluedMap<String,String> preferences)
The Content-Type of which to write the model is specified by the
contentType
argument.
contentType
- the Content-Type of which to write the model.preferences
- the preferences from the HTTP Prefer
headerIOException
JsonMappingException
JsonGenerationException
javax.ws.rs.core.Response options()
Copyright © 2018. All rights reserved.