[
https://issues.apache.org/jira/browse/OFBIZ-4274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13107812#comment-13107812
]
Raj Saini commented on OFBIZ-4274:
----------------------------------
Adrian,
Thanks for the clarification.
There are RESTful client APIs in Java and other framework and developers may
want to take advantage of these APIs. These client API follow the RESTful
standard and they may depend on the HTTP headers and statuses. If we plan to
use the XML based packaging and error handing, it will become the
responsibility of the developer to handle all standard application errors at
application level instead of delegating it to application. Below is a code
snippet consuming RESTful services using Oracle Jersey client API. Client API
is trying to get the response status and I guess it is only possible if
response is a standard.
WebResource webResource = client.resource("http://example.com/base");
ClientResponse response =
webResource.accept("text/plain").get(ClientResponse.class);
int status = response.getStatus();
String textEntity = response.getEntity(String.class);
> Implement a REST Servlet
> ------------------------
>
> Key: OFBIZ-4274
> URL: https://issues.apache.org/jira/browse/OFBIZ-4274
> Project: OFBiz
> Issue Type: New Feature
> Components: framework
> Reporter: Adrian Crum
> Priority: Minor
> Attachments: RestExampleSchema.xsd, RestXmlRepresentation.xml,
> rest-conf.xml
>
>
> Implement a REST servlet that will map REST requests to OFBiz services.
> Details are in the comments.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira