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, wait
getAppTitle, getAppVersion
public BaseSession() throws OpenAS2Exception
BaseSession
object, then calls the init()
method.OpenAS2Exception
init()
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
CertificateFactory
,
Component
public Component getComponent(String componentID) throws ComponentNotFoundException
Session
Component
currently registered with an IDgetComponent
in interface Session
componentID
- ID to search forComponentNotFoundException
public Map<String,Component> getComponents()
Session
Component
objects.getComponents
in interface Session
public PartnershipFactory getPartnershipFactory() throws ComponentNotFoundException
Session
getPartnershipFactory
in interface Session
PartnerFactory
componentComponentNotFoundException
PartnershipFactory
,
Component
public Processor getProcessor() throws ComponentNotFoundException
Session
getProcessor
in interface Session
Processor
componentComponentNotFoundException
Processor
,
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 © 2017. All rights reserved.