[jboss-jira] [JBoss JIRA] Commented: (JBXB-100) Add support for unmarshal(Source)

Richard Opalka (JIRA) jira-events at lists.jboss.org
Fri Dec 11 11:27:33 EST 2009


    [ https://jira.jboss.org/jira/browse/JBXB-100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12499499#action_12499499 ] 

Richard Opalka commented on JBXB-100:
-------------------------------------

How about:

unmarshal(Source source)
{
         if (source instanceof DOMSource)
         {
            Node node = ((DOMSource)source).getNode();
            ... // process node
         }
         else throw new UnsupportedOperationException();
}

Or you prefer to use DOMSource class directly in your method signatures?

> Add support for unmarshal(Source)
> ---------------------------------
>
>                 Key: JBXB-100
>                 URL: https://jira.jboss.org/jira/browse/JBXB-100
>             Project: JBoss XML Binding (JBossXB)
>          Issue Type: Feature Request
>    Affects Versions: JBossXB-1.0.0.CR9
>            Reporter: Thomas Diesler
>            Assignee: Alexey Loubyansky
>
> JBossWS fragments the incomming SOAP message into Source elements. Currently its using DOMSource.
> The interface to JBossXB is inefficient since the DOMSource needs to be serialized into a String and then into an InputStream. 
> It would be much better if JBossXB could unmarshall the Source directly.
> Later we could transparently switch from DOMSource to some more efficient implementation.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list