org.rundeck.api.parser
Class ParserHelper
java.lang.Object
org.rundeck.api.parser.ParserHelper
public class ParserHelper
- extends Object
Helper for parsing RunDeck responses
- Author:
- Vincent Behar
Method Summary |
static org.dom4j.Document |
loadDocument(org.apache.http.HttpResponse httpResponse)
Load an XML Document from the given RunDeck HttpResponse . |
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 |
ParserHelper
public ParserHelper()
loadDocument
public static org.dom4j.Document loadDocument(org.apache.http.HttpResponse httpResponse)
throws RundeckApiException
- Load an XML
Document
from the given RunDeck HttpResponse
.
- Parameters:
httpResponse
- 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- See Also:
loadDocument(InputStream)
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- See Also:
loadDocument(HttpResponse)
Copyright © 2011. All Rights Reserved.