org.glite.voms.contact

Class VOMSResponse


public class VOMSResponse
extends java.lang.Object

This class is used to parse and represent VOMS server responses.

Field Summary

protected Document
xmlResponse

Constructor Summary

VOMSResponse(Document res)
Builds a VOMSResponse starting from a DOM an XML document (see Document).

Method Summary

VOMSErrorMessage[]
errorMessages()
Extracts the error messages from the VOMS response.
byte[]
getAC()
Extracts the AC from the VOMS response.
String
getACAsString()
Extracts the AC from the VOMS response.
byte[]
getData()
Extracts the textual data from the VOMS response.
int
getVersion()
Extracts the version from the VOMS response.
boolean
hasErrors()
boolean
hasWarnings()
VOMSWarningMessage[]
warningMessages()

Field Details

xmlResponse

protected Document xmlResponse

Constructor Details

VOMSResponse

public VOMSResponse(Document res)
Builds a VOMSResponse starting from a DOM an XML document (see Document).
Parameters:
res -

Method Details

errorMessages

public VOMSErrorMessage[] errorMessages()
Extracts the error messages from the VOMS response.
Returns:
an array of VOMSErrorMessage objects.

getAC

public byte[] getAC()
Extracts the AC from the VOMS response.
Returns:
an array of bytes containing the AC.

getACAsString

public String getACAsString()
Extracts the AC from the VOMS response.
Returns:
a string containing the AC.

getData

public byte[] getData()
Extracts the textual data from the VOMS response.
Returns:
an array of bytes containing the data.

getVersion

public int getVersion()
Extracts the version from the VOMS response.
Returns:
an integer containing the AC.

hasErrors

public boolean hasErrors()

hasWarnings

public boolean hasWarnings()

warningMessages

public VOMSWarningMessage[] warningMessages()