org.glite.voms.contact
Class VOMSResponse

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

public class VOMSResponse
extends Object

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

Author:
Andrea Ceccanti, Vincenzo Ciaschini

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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xmlResponse

protected Document xmlResponse
Constructor Detail

VOMSResponse

public VOMSResponse(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 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()


Copyright © 2012. All Rights Reserved.