@Provider @ApplicationScoped @Path(value="{path: .*}") public class TrellisHttpResource extends Object
| Constructor and Description |
|---|
TrellisHttpResource(ServiceBundler trellis)
Create a Trellis HTTP resource matcher.
|
TrellisHttpResource(ServiceBundler trellis,
String baseUrl)
Create a Trellis HTTP resource matcher.
|
| Modifier and Type | Method and Description |
|---|---|
void |
createResource(AsyncResponse response,
Request request,
UriInfo uriInfo,
HttpHeaders headers,
SecurityContext secContext,
InputStream body)
Perform a POST operation on a LDP Resource.
|
void |
deleteResource(AsyncResponse response,
Request request,
UriInfo uriInfo,
HttpHeaders headers,
SecurityContext secContext)
Perform a DELETE operation on an LDP Resource.
|
void |
getResource(AsyncResponse response,
Request request,
UriInfo uriInfo,
HttpHeaders headers)
Perform a GET operation on an LDP Resource.
|
void |
getResourceHeaders(AsyncResponse response,
Request request,
UriInfo uriInfo,
HttpHeaders headers)
Perform a HEAD operation on an LDP Resource.
|
void |
initialize()
Initialize the Trellis backend with a root container and default ACL quads.
|
void |
options(AsyncResponse response,
Request request,
UriInfo uriInfo,
HttpHeaders headers)
Perform an OPTIONS operation on an LDP Resource.
|
void |
setResource(AsyncResponse response,
Request request,
UriInfo uriInfo,
HttpHeaders headers,
SecurityContext secContext,
InputStream body)
Perform a PUT operation on a LDP Resource.
|
void |
updateResource(AsyncResponse response,
Request request,
UriInfo uriInfo,
HttpHeaders headers,
SecurityContext secContext,
String body)
Perform a PATCH operation on an LDP Resource.
|
@Inject public TrellisHttpResource(ServiceBundler trellis)
trellis - the Trellis application bundlepublic TrellisHttpResource(ServiceBundler trellis, String baseUrl)
trellis - the Trellis application bundlebaseUrl - a base URL@PostConstruct public void initialize()
@GET @Timed public void getResource(@Suspended AsyncResponse response, @Context Request request, @Context UriInfo uriInfo, @Context HttpHeaders headers)
response - the async responseuriInfo - the URI infoheaders - the HTTP headersrequest - the request@HEAD @Timed public void getResourceHeaders(@Suspended AsyncResponse response, @Context Request request, @Context UriInfo uriInfo, @Context HttpHeaders headers)
response - the async responseuriInfo - the URI infoheaders - the HTTP headersrequest - the request@OPTIONS @Timed public void options(@Suspended AsyncResponse response, @Context Request request, @Context UriInfo uriInfo, @Context HttpHeaders headers)
response - the async responseuriInfo - the URI infoheaders - the HTTP headersrequest - the request@PATCH @Timed public void updateResource(@Suspended AsyncResponse response, @Context Request request, @Context UriInfo uriInfo, @Context HttpHeaders headers, @Context SecurityContext secContext, String body)
response - the async responseuriInfo - the URI infosecContext - the security contextheaders - the HTTP headersrequest - the requestbody - the body@DELETE @Timed public void deleteResource(@Suspended AsyncResponse response, @Context Request request, @Context UriInfo uriInfo, @Context HttpHeaders headers, @Context SecurityContext secContext)
response - the async responseuriInfo - the URI infosecContext - the security contextheaders - the HTTP headersrequest - the request@POST @Timed public void createResource(@Suspended AsyncResponse response, @Context Request request, @Context UriInfo uriInfo, @Context HttpHeaders headers, @Context SecurityContext secContext, InputStream body)
response - the async responseuriInfo - the URI infosecContext - the security contextheaders - the HTTP headersrequest - the requestbody - the body@PUT @Timed public void setResource(@Suspended AsyncResponse response, @Context Request request, @Context UriInfo uriInfo, @Context HttpHeaders headers, @Context SecurityContext secContext, InputStream body)
response - the async responseuriInfo - the URI infosecContext - the security contextheaders - the HTTP headersrequest - the requestbody - the body