|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.avalon.cornerstone.blocks.sockets.AbstractTLSSocketFactory
public abstract class AbstractTLSSocketFactory
Contains the code common for both TLS socket factories. They both need to use an SSLFactoryBuilder which is configured using configuration and context given by the container. Then, they both set timeouts on the manufactured sockets.
Field Summary | |
---|---|
protected int |
m_socketTimeOut
|
Constructor Summary | |
---|---|
AbstractTLSSocketFactory()
|
Method Summary | |
---|---|
void |
configure(Configuration configuration)
Configures the factory. |
void |
contextualize(Context context)
|
void |
initialize()
Creates an SSL factory using the confuration values. |
protected abstract void |
visitBuilder(SSLFactoryBuilder builder)
The child factories have to use an instance of SSLFactoryBuilder to obtain their factories. |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int m_socketTimeOut
Constructor Detail |
---|
public AbstractTLSSocketFactory()
Method Detail |
---|
public void contextualize(Context context)
contextualize
in interface Contextualizable
public void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
configuration
- the Configuration
ConfigurationException
- if an error occurspublic void initialize() throws Exception
initialize
in interface Initializable
Exception
protected abstract void visitBuilder(SSLFactoryBuilder builder)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |