public final class JaxRxResource extends Object
/{system}/jax-rx/}.
Depending on which part of the URL a request
occurs, it creates a HTTP response containing the available resources
according to the URL path.| Modifier and Type | Field and Description |
|---|---|
protected static String |
APPLICATION_QUERY_XML
Content type for query expressions.
|
| Constructor and Description |
|---|
JaxRxResource() |
| Modifier and Type | Method and Description |
|---|---|
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,
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.StreamingOutput |
getRoot()
This method waits for calls to the above specified URL
JaxRxConstants.ROOTPATH and creates a
response XML file containing
the available further resources. |
javax.ws.rs.core.StreamingOutput |
getSystem(String system)
This method waits for calls to the specified URL
JaxRxConstants.SYSTEMPATH and creates a
response XML file
containing the available further resources. |
javax.ws.rs.core.Response |
postQuery(String system,
InputStream input,
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.
|
protected static final String APPLICATION_QUERY_XML
public javax.ws.rs.core.StreamingOutput getRoot()
JaxRxConstants.ROOTPATH and creates a
response XML file containing
the available further resources. In our case it is just the JaxRxConstants.SYSTEMPATH resource.public javax.ws.rs.core.StreamingOutput getSystem(String system)
JaxRxConstants.SYSTEMPATH and creates a
response XML file
containing the available further resources. In our case it just the JaxRxConstants.JAXRXPATH
resource.system - The associated system with this request.public javax.ws.rs.core.Response getResource(String system, @Context javax.ws.rs.core.UriInfo uri, @Context javax.ws.rs.core.HttpHeaders headers)
system - The associated system with this request.uri - The context information due to the requested URI.headers - HTTP header attributes.public javax.ws.rs.core.Response postQuery(String system, InputStream input, @Context javax.ws.rs.core.HttpHeaders headers)
system - The implementation system.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.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.