Class LegacyVOMSResponse
- java.lang.Object
-
- org.italiangrid.voms.request.impl.LegacyVOMSResponse
-
- All Implemented Interfaces:
VOMSResponse
public class LegacyVOMSResponse extends java.lang.Object implements VOMSResponse
-
-
Field Summary
Fields Modifier and Type Field Description private static intERROR_OFFSETprotected org.w3c.dom.DocumentxmlResponse
-
Constructor Summary
Constructors Constructor Description LegacyVOMSResponse(org.w3c.dom.Document res)Builds a VOMSResponse starting from a DOM an XML document (seeDocument).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VOMSErrorMessage[]errorMessages()Extracts the error messages from the VOMS response.byte[]getAC()Extracts the AC from the VOMS response.intgetVersion()Extracts the version from the VOMS response.java.lang.StringgetXMLAsString()booleanhasErrors()booleanhasWarnings()VOMSWarningMessage[]warningMessages()Extracts the warning messags from the VOMS response.
-
-
-
Method Detail
-
getVersion
public int getVersion()
Description copied from interface:VOMSResponseExtracts the version from the VOMS response.- Specified by:
getVersionin interfaceVOMSResponse- Returns:
- an integer containing the AC.
-
hasErrors
public boolean hasErrors()
- Specified by:
hasErrorsin interfaceVOMSResponse- Returns:
trueif thisVOMSResponsehas errors,falseotherwise
-
hasWarnings
public boolean hasWarnings()
- Specified by:
hasWarningsin interfaceVOMSResponse- Returns:
trueif thisVOMSResponsehas warnings,falseotherwise
-
getAC
public byte[] getAC()
Description copied from interface:VOMSResponseExtracts the AC from the VOMS response.- Specified by:
getACin interfaceVOMSResponse- Returns:
- an array of bytes containing the AC.
-
errorMessages
public VOMSErrorMessage[] errorMessages()
Description copied from interface:VOMSResponseExtracts the error messages from the VOMS response.- Specified by:
errorMessagesin interfaceVOMSResponse- Returns:
- an array of
VOMSErrorMessageobjects.
-
warningMessages
public VOMSWarningMessage[] warningMessages()
Description copied from interface:VOMSResponseExtracts the warning messags from the VOMS response.- Specified by:
warningMessagesin interfaceVOMSResponse- Returns:
- an array of
VOMSWarningMessageobjects.
-
getXMLAsString
public java.lang.String getXMLAsString()
- Specified by:
getXMLAsStringin interfaceVOMSResponse- Returns:
- Returns the XML representation of the response as a string.
-
-