public abstract class BaseSession extends Object implements Session
DEFAULT_CONTENT_TRANSFER_ENCODING, LOG_LEVEL_OVERRIDE_KEY
Constructor and Description |
---|
BaseSession()
Creates a
BaseSession object, then calls the init() method. |
Modifier and Type | Method and Description |
---|---|
String |
getBaseDirectory() |
CertificateFactory |
getCertificateFactory()
Short-cut method to retrieve a certificate factory.
|
Component |
getComponent(String componentID)
Gets the
Component currently registered with an ID |
Map<String,Component> |
getComponents()
Return a map of component ID's to
Component objects. |
PartnershipFactory |
getPartnershipFactory()
Short-cut method to retrieve a partner factory.
|
Processor |
getProcessor()
Short-cut method to retrieve a processor.
|
protected void |
init()
This method is called by the
BaseSession constructor to set up any global
configuration settings. |
void |
start()
Lifecycle control method.
|
void |
stop()
Lifecycle control method.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAppTitle, getAppVersion
public BaseSession() throws OpenAS2Exception
BaseSession
object, then calls the init()
method.OpenAS2Exception
- - - Houston we have a probleminit()
public void start() throws OpenAS2Exception
Session
start
in interface Session
OpenAS2Exception
public void stop() throws Exception
Session
public CertificateFactory getCertificateFactory() throws ComponentNotFoundException
Session
getCertificateFactory
in interface Session
CertificateFactory
componentComponentNotFoundException
- If a CertificateFactory
component has not been
registeredCertificateFactory
,
Component
public Component getComponent(String componentID) throws ComponentNotFoundException
Session
Component
currently registered with an IDgetComponent
in interface Session
componentID
- ID to search forComponentNotFoundException
- If a component is not registered with the IDpublic Map<String,Component> getComponents()
Session
Component
objects.getComponents
in interface Session
public PartnershipFactory getPartnershipFactory() throws ComponentNotFoundException
Session
getPartnershipFactory
in interface Session
PartnerFactory
componentComponentNotFoundException
- If a PartnerFactory
component has not been registeredPartnershipFactory
,
Component
public Processor getProcessor() throws ComponentNotFoundException
Session
getProcessor
in interface Session
Processor
componentComponentNotFoundException
- If a Processor
component has not been registeredProcessor
,
Component
protected void init() throws OpenAS2Exception
BaseSession
constructor to set up any global
configuration settings.OpenAS2Exception
- If an error occurs while initializing systemspublic String getBaseDirectory()
getBaseDirectory
in interface Session
Copyright © 2018. All rights reserved.