org.glite.voms.contact
Class VOMSResponse

java.lang.Object
  extended by org.glite.voms.contact.VOMSResponse

public class VOMSResponse
extends java.lang.Object

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


Field Summary
protected  org.w3c.dom.Document xmlResponse
           
 
Constructor Summary
VOMSResponse(org.w3c.dom.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.
 java.lang.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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xmlResponse

protected org.w3c.dom.Document xmlResponse
Constructor Detail

VOMSResponse

public VOMSResponse(org.w3c.dom.Document res)
Builds a VOMSResponse starting from a DOM an XML document (see Document).

Parameters:
res -
Method Detail

hasErrors

public boolean hasErrors()

hasWarnings

public boolean hasWarnings()

getAC

public byte[] getAC()
Extracts the AC from the VOMS response.

Returns:
an array of bytes 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.

getACAsString

public java.lang.String getACAsString()
Extracts the AC from the VOMS response.

Returns:
a string containing the AC.

errorMessages

public VOMSErrorMessage[] errorMessages()
Extracts the error messages from the VOMS response.

Returns:
an array of VOMSErrorMessage objects.

warningMessages

public VOMSWarningMessage[] warningMessages()