org.rundeck.api.parser
Class ParserHelper

java.lang.Object
  extended by org.rundeck.api.parser.ParserHelper

public class ParserHelper
extends Object

Helper for parsing RunDeck responses

Author:
Vincent Behar

Constructor Summary
ParserHelper()
           
 
Method Summary
static org.dom4j.Document loadDocument(InputStream inputStream)
          Load an XML Document from the given InputStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParserHelper

public ParserHelper()
Method Detail

loadDocument

public static org.dom4j.Document loadDocument(InputStream inputStream)
                                       throws RundeckApiException
Load an XML Document from the given InputStream

Parameters:
inputStream - from an API call to RunDeck
Returns:
an XML Document
Throws:
RundeckApiException - if we failed to read the response, or if the response is an error


Copyright © 2011. All Rights Reserved.