public class RESTVOMSResponse extends java.lang.Object implements VOMSResponse
Modifier and Type | Field and Description |
---|---|
private static int |
ERROR_OFFSET |
protected org.w3c.dom.Document |
xmlResponse |
Constructor and Description |
---|
RESTVOMSResponse(org.w3c.dom.Document res) |
Modifier and Type | Method and Description |
---|---|
VOMSErrorMessage[] |
errorMessages()
Extracts the error messages from the VOMS response.
|
byte[] |
getAC()
Extracts the AC from the VOMS response.
|
int |
getVersion()
Extracts the version from the VOMS response.
|
java.lang.String |
getXMLAsString() |
boolean |
hasErrors() |
boolean |
hasWarnings() |
VOMSWarningMessage[] |
warningMessages()
Extracts the warning messags from the VOMS response.
|
private static int ERROR_OFFSET
protected org.w3c.dom.Document xmlResponse
public int getVersion()
VOMSResponse
getVersion
in interface VOMSResponse
public boolean hasErrors()
hasErrors
in interface VOMSResponse
true
if this VOMSResponse
has errors,
false
otherwisepublic boolean hasWarnings()
hasWarnings
in interface VOMSResponse
true
if this VOMSResponse
has warnings,
false
otherwisepublic byte[] getAC()
VOMSResponse
getAC
in interface VOMSResponse
public VOMSErrorMessage[] errorMessages()
VOMSResponse
errorMessages
in interface VOMSResponse
VOMSErrorMessage
objects.public VOMSWarningMessage[] warningMessages()
VOMSResponse
warningMessages
in interface VOMSResponse
VOMSWarningMessage
objects.public java.lang.String getXMLAsString()
getXMLAsString
in interface VOMSResponse