public final class XMLResource extends Object
JaxRxConstants.RESOURCEPATH.
This means that JAX-RX returns the available resources which the underlying
implementation provide. Available resources could be collections or
particular XML resources.| Modifier and Type | Field and Description |
|---|---|
protected static String |
APPLICATION_QUERY_XML
Content type for query expressions.
|
| Constructor and Description |
|---|
XMLResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
deleteResource(String system,
String resource,
javax.ws.rs.core.HttpHeaders headers)
This method will be called when an HTTP client sends a DELETE request to
delete an existing resource.
|
protected Map<QueryParameter,String> |
getParameters(Document doc,
JaxRx jaxrx)
Extracts and returns query parameters, variables, and output options from
the specified document instance.
|
protected Map<QueryParameter,String> |
getParameters(javax.ws.rs.core.UriInfo uri,
JaxRx jaxrx)
Extracts and returns query parameters from the specified map.
|
javax.ws.rs.core.Response |
getResource(String system,
String resource,
javax.ws.rs.core.UriInfo uri,
javax.ws.rs.core.HttpHeaders headers)
This method returns a collection of available resources.
|
javax.ws.rs.core.Response |
getResource(String system,
javax.ws.rs.core.UriInfo uri,
String resource,
javax.ws.rs.core.HttpHeaders headers)
This method will be called when a HTTP client sends a POST request to an
existing resource with 'application/query+xml' as Content-Type.
|
javax.ws.rs.core.Response |
postQuery(String system,
InputStream input,
String resource,
javax.ws.rs.core.HttpHeaders httpHeaders)
This method will be called when a HTTP client sends a POST request to an
existing resource with 'application/query+xml' as Content-Type.
|
javax.ws.rs.core.Response |
postQuery(String system,
String resource,
javax.ws.rs.core.HttpHeaders headers,
InputStream input)
This method will be called when a HTTP client sends a POST request to an
existing resource with 'application/query+xml' as Content-Type.
|
javax.ws.rs.core.Response |
postResource(String system,
String resource,
javax.ws.rs.core.HttpHeaders headers,
InputStream input)
This method will be called when an HTTP client sends a POST request to an
existing resource to add a resource.
|
javax.ws.rs.core.Response |
putResource(String system,
String resource,
javax.ws.rs.core.HttpHeaders headers,
InputStream xml)
This method will be called when a new XML file has to be stored within the
database.
|
protected static final String APPLICATION_QUERY_XML
public javax.ws.rs.core.Response getResource(String system, String resource, @Context javax.ws.rs.core.UriInfo uri, @Context javax.ws.rs.core.HttpHeaders headers)
system - The associated system with this request.resource - The name of the requested resource.uri - The context information due to the requested URI.headers - HttpHeaders information.public javax.ws.rs.core.Response postQuery(String system, String resource, @Context javax.ws.rs.core.HttpHeaders headers, InputStream input)
system - The implementation system.resource - The resource name.input - The input stream.headers - HTTP header attributes.Response which can be empty when no response is
expected. Otherwise it holds the response XML file.public javax.ws.rs.core.Response postResource(String system, String resource, @Context javax.ws.rs.core.HttpHeaders headers, InputStream input)
system - The implementation system.resource - The resource name.headers - HTTP header attributes.input - The input stream.Response which can be empty when no response is
expected. Otherwise it holds the response XML file.public javax.ws.rs.core.Response putResource(String system, String resource, @Context javax.ws.rs.core.HttpHeaders headers, InputStream xml)
system - The associated system with this request.resource - The name of the new resource.headers - HTTP header attributes.xml - The XML file as InputStream that will be stored.public javax.ws.rs.core.Response deleteResource(String system, String resource, @Context javax.ws.rs.core.HttpHeaders headers)
system - The associated system with this request.resource - The name of the existing resource that has to be deleted.headers - HTTP header attributes.protected Map<QueryParameter,String> getParameters(javax.ws.rs.core.UriInfo uri, JaxRx jaxrx)
uri - uri info with query parametersjaxrx - JAX-RX implementationMap.protected Map<QueryParameter,String> getParameters(Document doc, JaxRx jaxrx)
'\2'.public javax.ws.rs.core.Response postQuery(String system, InputStream input, String resource, javax.ws.rs.core.HttpHeaders httpHeaders)
system - The implementation system.input - The input stream.resource - The resourcehttpHeaders - HTTP header attributes.Response which can be empty when no response is
expected. Otherwise it holds the response XML file.public javax.ws.rs.core.Response getResource(String system, javax.ws.rs.core.UriInfo uri, String resource, javax.ws.rs.core.HttpHeaders headers)
system - The implementation system.uri - The context information due to the requested URI.resource - The resourceheaders - HTTP header attributes.Response which can be empty when no response is
expected. Otherwise it holds the response XML file.Copyright © 2013. All Rights Reserved.