You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by "Davanum Srinivas (JIRA)" <ji...@apache.org> on 2007/07/30 15:05:53 UTC
[jira] Commented: (WSCOMMONS-224) Add payload helper methods for
text/binary/map
[ 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: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org