public abstract class BaseSession extends Object implements Session
DEFAULT_CONTENT_TRANSFER_ENCODING| 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, waitgetAppTitle, getAppVersionpublic BaseSession()
throws OpenAS2Exception
BaseSession object, then calls the init() method.OpenAS2Exception - - - Houston we have a probleminit()public void start()
throws OpenAS2Exception
Sessionstart in interface SessionOpenAS2Exceptionpublic void stop()
throws Exception
Sessionpublic CertificateFactory getCertificateFactory() throws ComponentNotFoundException
SessiongetCertificateFactory in interface SessionCertificateFactory componentComponentNotFoundException - If a CertificateFactory component has not been
registeredCertificateFactory,
Componentpublic Component getComponent(String componentID) throws ComponentNotFoundException
SessionComponent currently registered with an IDgetComponent in interface SessioncomponentID - ID to search forComponentNotFoundException - If a component is not registered with the IDpublic Map<String,Component> getComponents()
SessionComponent objects.getComponents in interface Sessionpublic PartnershipFactory getPartnershipFactory() throws ComponentNotFoundException
SessiongetPartnershipFactory in interface SessionPartnerFactory componentComponentNotFoundException - If a PartnerFactory component has not been registeredPartnershipFactory,
Componentpublic Processor getProcessor() throws ComponentNotFoundException
SessiongetProcessor in interface SessionProcessor componentComponentNotFoundException - If a Processor component has not been registeredProcessor,
Componentprotected 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 SessionCopyright © 2017. All rights reserved.