***  This class provides Binary Compatibility only, not Source Compatibility  ***

com.sas.services.session
Class SessionServiceInitializer

com.sas.services.session.SessionServiceInitializer
All Implemented Interfaces:
DocumentServiceConfigAdapterInterface

public class SessionServiceInitializer
implements DocumentServiceConfigAdapterInterface

Utility used to parse a Session Service XML document to create a configuration. The XML document must conform to the service's XML schema

Since:
1.0
See Also:
SessionServiceInitObject

Field Summary
static java.lang.String XML_ATTRIBUTE_TIMEOUT
           
static java.lang.String XML_ATTRIBUTE_USER_CONTEXT
          SessionService element attribute "userContextName" that may optionally specify the name of the user context.
static java.lang.String XML_ELEMENT_SESSION_SERVICE
          SessionService root XML element.
 
Method Summary
 AbstractServiceComponentConfig createConfigFromDocument(org.w3c.dom.Document document)
          Converts an XML document to a service configuration.
static SessionServiceInitObject parse(org.w3c.dom.Document document)
          Gets an instance of the SessionServiceInitObject using the specified configuration data found in the XML formatted deployment configuration file.
 

Field Detail

XML_ELEMENT_SESSION_SERVICE

public static final java.lang.String XML_ELEMENT_SESSION_SERVICE
SessionService root XML element.

See Also:
Constant Field Values

XML_ATTRIBUTE_USER_CONTEXT

public static final java.lang.String XML_ATTRIBUTE_USER_CONTEXT
SessionService element attribute "userContextName" that may optionally specify the name of the user context.

See Also:
Constant Field Values

XML_ATTRIBUTE_TIMEOUT

public static final java.lang.String XML_ATTRIBUTE_TIMEOUT
See Also:
Constant Field Values
Method Detail

createConfigFromDocument

public AbstractServiceComponentConfig createConfigFromDocument(org.w3c.dom.Document document)
                                                        throws ServiceException
Converts an XML document to a service configuration.

Specified by:
createConfigFromDocument in interface DocumentServiceConfigAdapterInterface
Parameters:
document - XML document that represents a service configuration.
Returns:
Session service configuration.
Throws:
ServiceException - if unable to adapt the XML document to a service configuration.

parse

public static final SessionServiceInitObject parse(org.w3c.dom.Document document)
                                            throws ServiceConfigurationException
Gets an instance of the SessionServiceInitObject using the specified configuration data found in the XML formatted deployment configuration file.

Parameters:
document - XML document that describes a Session Service configuration.
Returns:
Object The initialized object.
Throws:
ServiceConfigurationException - if unable to obtain a session service initialization object.

***  This class provides Binary Compatibility only, not Source Compatibility  ***




Copyright © 2009 SAS Institute Inc. All Rights Reserved.