public interface Session
Session
interface provides configuration and resource information, and a means for
components to access the functionality of other components.
The Session
has its own lifecycle controlled by two methods start()
and #close()
.Component
,
CertificateFactory
,
org.openas2.partner.PartnerFactory
,
Processor
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_CONTENT_TRANSFER_ENCODING |
Modifier and Type | Method and Description |
---|---|
String |
getAppTitle() |
String |
getAppVersion() |
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.
|
void |
start()
Lifecycle control method.
|
void |
stop()
Lifecycle control method.
|
static final String DEFAULT_CONTENT_TRANSFER_ENCODING
CertificateFactory getCertificateFactory() throws ComponentNotFoundException
CertificateFactory
componentComponentNotFound
- If a CertificateFactory
component has not been
registeredComponentNotFoundException
CertificateFactory
,
Component
Component getComponent(String componentID) throws ComponentNotFoundException
Component
currently registered with an IDcomponentID
- ID to search forComponentNotFound
- If a component is not registered with the IDComponentNotFoundException
Map<String,Component> getComponents()
Component
objects.PartnershipFactory getPartnershipFactory() throws ComponentNotFoundException
PartnerFactory
componentComponentNotFound
- If a PartnerFactory
component has not been registeredComponentNotFoundException
PartnershipFactory
,
Component
Processor getProcessor() throws ComponentNotFoundException
Processor
componentComponentNotFound
- If a Processor
component has not been registeredComponentNotFoundException
Processor
,
Component
String getBaseDirectory()
String getAppVersion()
String getAppTitle()
Copyright © 2017. All rights reserved.