[ 
https://issues.apache.org/jira/browse/WSCOMMONS-224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12516377
 ] 

Davanum Srinivas commented on WSCOMMONS-224:
--------------------------------------------

How about we use custom classes that extend javax.xml.transform.Source ?

DataHandlerSource
OMElementSource
StringSource

then the API collapses to:

Source getPayload();
void setPayload(Source);
int getPayloadType(); // Which returns one of PAYLOAD_DOM, PAYLOAD_SAX, 
PAYLOAD_STREAM, PAYLOAD_STRING, PAYLOAD_DATAHANDLER, PAYLOAD_OM depending on 
which data source was used.

thanks,
dims


> Add payload helper methods for text/binary/map
> ----------------------------------------------
>
>                 Key: WSCOMMONS-224
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-224
>             Project: WS-Commons
>          Issue Type: Improvement
>            Reporter: Paul Fremantle
>
> See this thread:
> http://www.nabble.com/Supporting-content-types-in-Synapse-and-Axiom-t4151301.html
> Add the following methods to SOAPEnvelope
> OMElement get/setPayload()
> DataHandler get/setBytesPayload()
> String get/setTextPayload()
> boolean isBinary();
> boolean isText();
> int getPayloadType() 

-- 
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