fedora.server.security
Class BackendSecurityDeserializer
java.lang.Object
org.xml.sax.helpers.DefaultHandler
fedora.server.security.BackendSecurityDeserializer
- All Implemented Interfaces:
- Constants, org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
public class BackendSecurityDeserializer
- extends org.xml.sax.helpers.DefaultHandler
- implements Constants
SAX parser to deserialize the beSecurity XML file
that contains configuration properties for backend services.
- Author:
- payette@cs.cornell.edu
| Fields inherited from interface fedora.common.Constants |
ACCESS, ACTION, API, AUDIT, AUDIT1_0, BATCH_MODIFY, BATCH_MODIFY1_1, BDEF, BE_SECURITY, BE_SECURITY1_0, BINDING_SPEC, BMECH, DATASTREAM, DC, DISSEMINATOR, DS_COMPOSITE_MODEL, DS_COMPOSITE_MODEL1_0, ENVIRONMENT, FCFG, FEDORA, FEDORA_HOME, FOXML, FOXML1_0, FOXML1_1, HTTP_REQUEST, MANAGEMENT, METHOD_MAP, METS, METS_EXT, METS_EXT1_0, METS_EXT1_1, MODEL, MULGARA, OAI_DC, OAI_DC2_0, OAI_FRIENDS, OAI_FRIENDS2_0, OAI_IDENTIFIER, OAI_IDENTIFIER2_0, OAI_PMH, OAI_PMH2_0, OAI_PROV, OAI_PROV2_0, OBJ_DATASTREAMS1_0, OBJ_HISTORY1_0, OBJ_ITEMS1_0, OBJ_METHODS1_0, OBJ_PROFILE1_0, OBJECT, OLD_XLINK, PID_LIST1_0, RDF, RDF_XSD, RECOVERY, RELS_EXT, REPO_DESC1_0, RESOURCE, SERVICE_PROFILE, SOAP, SOAP_ENC, SUBJECT, TYPES, VIEW, WSDL, WSDL_HTTP, WSDL_MIME, XLINK, XML_XSD, XMLNS, XSI |
|
Method Summary |
BackendSecuritySpec |
deserialize(java.lang.String inFilePath)
|
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
|
static void |
main(java.lang.String[] args)
|
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes a)
|
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CALL_BASIC_AUTH
public static final java.lang.String CALL_BASIC_AUTH
- Attribute names in the beSecurity spec file
- See Also:
- Constant Field Values
CALL_SSL
public static final java.lang.String CALL_SSL
- See Also:
- Constant Field Values
CALL_USERNAME
public static final java.lang.String CALL_USERNAME
- See Also:
- Constant Field Values
CALL_PASSWORD
public static final java.lang.String CALL_PASSWORD
- See Also:
- Constant Field Values
CALLBACK_BASIC_AUTH
public static final java.lang.String CALLBACK_BASIC_AUTH
- See Also:
- Constant Field Values
CALLBACK_SSL
public static final java.lang.String CALLBACK_SSL
- See Also:
- Constant Field Values
IPLIST
public static final java.lang.String IPLIST
- See Also:
- Constant Field Values
ROLE
public static final java.lang.String ROLE
- See Also:
- Constant Field Values
BackendSecurityDeserializer
public BackendSecurityDeserializer(java.lang.String characterEncoding,
boolean validate)
throws javax.xml.parsers.FactoryConfigurationError,
javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
java.io.UnsupportedEncodingException
- Throws:
javax.xml.parsers.FactoryConfigurationError
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.UnsupportedEncodingException
deserialize
public BackendSecuritySpec deserialize(java.lang.String inFilePath)
throws GeneralException,
StreamIOException,
java.io.UnsupportedEncodingException
- Throws:
GeneralException
StreamIOException
java.io.UnsupportedEncodingException
startElement
public void startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes a)
throws org.xml.sax.SAXException
- Specified by:
startElement in interface org.xml.sax.ContentHandler- Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
- Throws:
org.xml.sax.SAXException
endElement
public void endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
- Specified by:
endElement in interface org.xml.sax.ContentHandler- Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception