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 stop()
.Component
,
CertificateFactory
,
PartnershipFactory
,
Processor
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_CONTENT_TRANSFER_ENCODING |
static String |
LOG_LEVEL_OVERRIDE_KEY |
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
static final String LOG_LEVEL_OVERRIDE_KEY
void start() throws Exception
Exception
- - - Houston we have a problemvoid stop() throws Exception
Exception
- - - Houston we have a problemCertificateFactory getCertificateFactory() throws ComponentNotFoundException
CertificateFactory
componentComponentNotFoundException
- If a CertificateFactory
component has not been
registeredCertificateFactory
,
Component
Component getComponent(String componentID) throws ComponentNotFoundException
Component
currently registered with an IDcomponentID
- ID to search forComponentNotFoundException
- If a component is not registered with the IDMap<String,Component> getComponents()
Component
objects.PartnershipFactory getPartnershipFactory() throws ComponentNotFoundException
PartnerFactory
componentComponentNotFoundException
- If a PartnerFactory
component has not been registeredPartnershipFactory
,
Component
Processor getProcessor() throws ComponentNotFoundException
Processor
componentComponentNotFoundException
- If a Processor
component has not been registeredProcessor
,
Component
String getBaseDirectory()
String getAppVersion()
String getAppTitle()
Copyright © 2018. All rights reserved.