org.opensaml
Class SAMLQuery

java.lang.Object
  extended by org.opensaml.SAMLObject
      extended by org.opensaml.SAMLQuery
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
SAMLSubjectQuery

public abstract class SAMLQuery
extends SAMLObject
implements Cloneable

Abstract base class for all SAML queries

Author:
Scott Cantor

Field Summary
protected static Hashtable queryTypeMap
          Maps SAML query types (as XML QNames) to Java class implementations
 
Fields inherited from class org.opensaml.SAMLObject
config, dirty, log, parentObject, root
 
Constructor Summary
SAMLQuery()
           
 
Method Summary
static SAMLQuery getInstance(Element e)
          Locates an implementation class for a query and constructs it based on the DOM provided.
static SAMLQuery getInstance(InputStream in)
          Locates an implementation class for a query and constructs it based on the stream provided.
static void regFactory(javax.xml.namespace.QName type, String className)
          Registers a class to handle a specific SAML query type when parsing XML
static void unregFactory(javax.xml.namespace.QName type)
          Unregisters a class to handle a specific SAML query type when parsing XML
 
Methods inherited from class org.opensaml.SAMLObject
buildRoot, checkValidity, clone, fromDOM, fromStream, fromStream, getParent, plantRoot, setDirty, setParent, toBase64, toDOM, toDOM, toDOM, toDOM, toStream, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

queryTypeMap

protected static Hashtable queryTypeMap
Maps SAML query types (as XML QNames) to Java class implementations

Constructor Detail

SAMLQuery

public SAMLQuery()
Method Detail

regFactory

public static void regFactory(javax.xml.namespace.QName type,
                              String className)
Registers a class to handle a specific SAML query type when parsing XML

Parameters:
type - The query type or element name
className - The Java class that handles this query

unregFactory

public static void unregFactory(javax.xml.namespace.QName type)
Unregisters a class to handle a specific SAML query type when parsing XML

Parameters:
type - The query type or element name

getInstance

public static SAMLQuery getInstance(Element e)
                             throws SAMLException
Locates an implementation class for a query and constructs it based on the DOM provided.

Parameters:
e - The root of a DOM containing the SAML query
Returns:
SAMLQuery A constructed query object
Throws:
SAMLException - Thrown if an error occurs while constructing the object

getInstance

public static SAMLQuery getInstance(InputStream in)
                             throws SAMLException
Locates an implementation class for a query and constructs it based on the stream provided.

Parameters:
in - The stream to deserialize from
Returns:
SAMLQuery A constructed query object
Throws:
SAMLException - Thrown if an error occurs while constructing the object


Copyright ? 2005 UCAID. All Rights Reserved.