You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Keith Godwin Chapman (JIRA)" <ji...@apache.org> on 2007/02/19 10:30:05 UTC

[jira] Created: (AXIS2-2213) Update OMBuilder interface to handle REST cases

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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-2213) Update OMBuilder interface to handle REST cases

Posted by "Eran Chinthaka (JIRA)" <ji...@apache.org>.
    [ 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-2213) Update OMBuilder interface to handle REST cases

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12477355 ] 

Davanum Srinivas commented on AXIS2-2213:
-----------------------------------------

Keith,

Is this fixed already?

thanks,
dims

> 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Resolved: (AXIS2-2213) Update OMBuilder interface to handle REST cases

Posted by "Thilina Gunarathne (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2213?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thilina Gunarathne resolved AXIS2-2213.
---------------------------------------

    Resolution: Fixed

Moved the OMBuilder to Axis2... Renamed to Builder..

Now it takes in an MessageContext ... No need to warry about addtional properties anymore :)..

> 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org