Class RESTVOMSResponse
java.lang.Object
org.italiangrid.voms.request.impl.RESTVOMSResponse
- All Implemented Interfaces:
VOMSResponse
This class is used to parse and represent VOMS server responses coming from a
RESTful VOMS service.
- Author:
- Andrea Ceccanti, Vincenzo Ciaschini, Valerio Venturi
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExtracts the error messages from the VOMS response.byte[]
getAC()
Extracts the AC from the VOMS response.int
Extracts the version from the VOMS response.boolean
boolean
Extracts the warning messags from the VOMS response.
-
Field Details
-
xmlResponse
-
-
Constructor Details
-
RESTVOMSResponse
-
-
Method Details
-
getVersion
public int getVersion()Description copied from interface:VOMSResponse
Extracts the version from the VOMS response.- Specified by:
getVersion
in interfaceVOMSResponse
- Returns:
- an integer containing the AC.
-
hasErrors
public boolean hasErrors()- Specified by:
hasErrors
in interfaceVOMSResponse
- Returns:
true
if thisVOMSResponse
has errors,false
otherwise
-
hasWarnings
public boolean hasWarnings()- Specified by:
hasWarnings
in interfaceVOMSResponse
- Returns:
true
if thisVOMSResponse
has warnings,false
otherwise
-
getAC
public byte[] getAC()Description copied from interface:VOMSResponse
Extracts the AC from the VOMS response.- Specified by:
getAC
in interfaceVOMSResponse
- Returns:
- an array of bytes containing the AC.
-
errorMessages
Description copied from interface:VOMSResponse
Extracts the error messages from the VOMS response.- Specified by:
errorMessages
in interfaceVOMSResponse
- Returns:
- an array of
VOMSErrorMessage
objects.
-
warningMessages
Description copied from interface:VOMSResponse
Extracts the warning messags from the VOMS response.- Specified by:
warningMessages
in interfaceVOMSResponse
- Returns:
- an array of
VOMSWarningMessage
objects.
-
getXMLAsString
- Specified by:
getXMLAsString
in interfaceVOMSResponse
- Returns:
- Returns the XML representation of the response as a string.
-