[ 
https://issues.apache.org/jira/browse/AXIS2-2213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12474647
 ] 

Eran Chinthaka commented on AXIS2-2213:
---------------------------------------

OM is for XML only. I can not understand what you are trying to do with a URL 
and a content type inside the OMBuilder. Remember OMBuilder is concerned about 
building an XML object model.
I think the best way to write your own builder or handle this outside of the 
OMBuilder.

Keith, please let me know if am I missing something here.

> Update OMBuilder interface to handle REST cases
> -----------------------------------------------
>
>                 Key: AXIS2-2213
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2213
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Improvement
>            Reporter: Keith Godwin Chapman
>         Assigned To: Thilina Gunarathne
>            Priority: Critical
>
> REST messages can be serialized in several ways. we currently support the 
> following serialization formats. Apllication/xml, 
> application/x-www-form-urlencoded, and multipart/form-data. In order to build 
> the message on the server side the current OMBuilder interface is not 
> sufficient. This is the current init method.
> public void init(InputStream inputStream, String charSetEncoding) 
> This is not sufficient for some serializations such as 
> application/x-www-form-urlencoded, and multipart/form-data. In order to 
> handle application/x-www-form-urlencoded, we need to parse the URL in adition 
> to the input stream and to handle multipart/form-data we need to parse the 
> content-type (In order to determine the boundry) to the init method. I 
> propose updating the init method to 
> public void init(InputStream inputStream, String charSetEncoding, String url, 
> String contentType) 
> Thanks,
> Keith

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to