public class SysMgmtUtils
extends java.lang.Object
| Constructor and Description |
|---|
SysMgmtUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.jdom.Document |
parseResponseXml(java.net.HttpURLConnection con) |
static byte[] |
readResponse(java.net.HttpURLConnection con)
Reads the response body and returns it in a byte array.
|
public static byte[] readResponse(java.net.HttpURLConnection con)
throws java.io.IOException
con - the HTTP connectionjava.io.IOException - if reading the response stream fails.public static org.jdom.Document parseResponseXml(java.net.HttpURLConnection con)
throws java.io.IOException,
org.jdom.JDOMException
java.io.IOExceptionorg.jdom.JDOMException