Class LegacyVOMSResponse
java.lang.Object
org.italiangrid.voms.request.impl.LegacyVOMSResponse
- All Implemented Interfaces:
VOMSResponse
-
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
-
LegacyVOMSResponse
Builds a VOMSResponse starting from a DOM an XML document (seeDocument
).- Parameters:
res
- the XML document for the response
-
-
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.
-