Oracle Secure Global Desktop Web Services API Documentation
Release 4.7

E21396-02

com.tarantella.tta.webservices.parser
Class ResponseParser

java.lang.Object
  extended by com.tarantella.tta.webservices.parser.ResponseParser
All Implemented Interfaces:
java.io.Serializable

public class ResponseParser
extends java.lang.Object
implements java.io.Serializable

The ResponseParser class parses XML and returns a tree of IResponse nodes. It knows which element tags in the XML correspond to objects and which are attributes, and it creates a suitable tree.

See Also:
Serialized Form

Constructor Summary
ResponseParser()
          Constructor.
ResponseParser(IResponseFactory factory)
          Constructor.
 
Method Summary
 IResponse parse(java.lang.String xml)
          Parses the XML.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResponseParser

public ResponseParser()
Constructor. Uses the DefaultResponseFactory to create nodes.

Since:
1.0

ResponseParser

public ResponseParser(IResponseFactory factory)
Constructor. Uses the specified IResponseFactory to create nodes.

Parameters:
factory - The factory that creates nodes.
Since:
1.0
Method Detail

parse

public IResponse parse(java.lang.String xml)
Parses the XML.

Parameters:
xml - The XML to be parsed.
Returns:
The root node.
Since:
1.0

Oracle Secure Global Desktop Web Services API Documentation
Release 4.7

E21396-02

Copyright © 2012, 2013, Oracle and/or its affiliates. All rights reserved.