org.mule.transport.servlet.jetty
Class JettyHttpsConnector
java.lang.Object
org.mule.transport.AbstractConnector
org.mule.transport.servlet.jetty.JettyHttpConnector
org.mule.transport.servlet.jetty.JettyHttpsConnector
- All Implemented Interfaces:
- ExceptionListener, EventListener, javax.resource.spi.work.WorkListener, MuleContextAware, Disposable, Initialisable, Lifecycle, Startable, Stoppable, NamedObject, TlsDirectKeyStore, TlsDirectTrustStore, TlsIndirectKeyStore, TlsIndirectTrustStore, TlsProtocolHandler, Connectable, Connector
public class JettyHttpsConnector
- extends JettyHttpConnector
- implements TlsDirectKeyStore, TlsIndirectKeyStore, TlsDirectTrustStore, TlsProtocolHandler
The JettyHttpsConnector can be using to embed a Jetty server to receive requests on an http inbound endpoint.
One server is created for each connector declared, many Jetty endpoints can share the same connector.
| Fields inherited from class org.mule.transport.AbstractConnector |
connected, createMultipleTransactedReceivers, DEFAULT_NUM_CONCURRENT_TX_RECEIVERS, dispatcherFactory, dispatchers, disposed, exceptionListener, initialised, initialStateStopped, logger, muleContext, name, numberOfConcurrentTransactedReceivers, receivers, requesterFactory, requesters, serviceDescriptor, serviceOverrides, sessionHandler, started, startOnConnect |
| Methods inherited from class org.mule.transport.servlet.jetty.JettyHttpConnector |
createReceiverServlet, doConnect, doDisconnect, doDispose, doStart, doStop, getConfigFile, getHttpServer, getReceiverServlet, getReplyToHandler, getServletClass, isUseContinuations, setConfigFile, setReceiverServlet, setServletClass, setUseContinuations, unregisterListener |
| Methods inherited from class org.mule.transport.AbstractConnector |
checkDisposed, configureDispatcherPool, connect, createReceiver, createScheduler, destroyReceiver, disconnect, dispatch, dispose, disposeDispatchers, disposeReceivers, disposeRequesters, disposeWorkManagers, doUnregisterListener, exceptionThrown, fireNotification, getConnectEventId, getConnectionDescription, getDefaultInboundTransformers, getDefaultOutboundTransformers, getDefaultResponseTransformers, getDispatcherFactory, getDispatcherThreadingProfile, getDispatcherWorkManager, getExceptionListener, getMaxDispatchersActive, getMaxRequestersActive, getMaxTotalDispatchers, getMessageAdapter, getMessageAdapter, getMuleContext, getName, getNumberOfConcurrentTransactedReceivers, getOutputStream, getReceiver, getReceiverKey, getReceivers, getReceivers, getReceiverThreadingProfile, getReceiverWorkManager, getRequesterFactory, getRequesterThreadingProfile, getRequesterWorkManager, getRetryPolicyTemplate, getScheduler, getServiceDescriptor, getServiceOverrides, getSessionHandler, getSupportedProtocols, handleException, handleException, handleWorkException, initFromServiceDescriptor, initialise, initialiseFromUrl, initWorkManagers, isConnected, isCreateMultipleTransactedReceivers, isDisposed, isEnableMessageEvents, isInitialStateStopped, isResponseEnabled, isStarted, isSyncEnabled, isValidateConnections, lookupReceiver, registerListener, registerSupportedMetaProtocol, registerSupportedProtocol, registerSupportedProtocolWithoutPrefix, request, request, send, setConnected, setCreateMultipleTransactedReceivers, setDispatcherFactory, setDispatcherPoolMaxWait, setDispatcherPoolWhenExhaustedAction, setDispatcherThreadingProfile, setDynamicNotification, setExceptionListener, setInitialStateStopped, setMaxDispatchersActive, setMaxRequestersActive, setMuleContext, setName, setNumberOfConcurrentTransactedReceivers, setReceiverThreadingProfile, setRequesterFactory, setRequesterPoolMaxWait, setRequesterPoolWhenExhaustedAction, setRequesterThreadingProfile, setRetryPolicyTemplate, setServiceOverrides, setSessionHandler, setSupportedProtocols, setupDispatchReturn, setupRequestReturn, setValidateConnections, shutdownScheduler, start, startAfterConnect, stop, supportsProtocol, toString, unregisterListener, unregisterSupportedProtocol, updateCachedNotificationHandler, validateConnection, workAccepted, workCompleted, workRejected, workStarted |
JETTY_SSL
public static final String JETTY_SSL
- See Also:
- Constant Field Values
HTTPS
public static final String HTTPS
- See Also:
- Constant Field Values
PEER_CERTIFICATES
public static final String PEER_CERTIFICATES
- See Also:
- Constant Field Values
LOCAL_CERTIFICATES
public static final String LOCAL_CERTIFICATES
- See Also:
- Constant Field Values
JettyHttpsConnector
public JettyHttpsConnector()
doInitialise
protected void doInitialise()
throws InitialisationException
- Overrides:
doInitialise in class JettyHttpConnector
- Throws:
InitialisationException
getProtocol
public String getProtocol()
- Specified by:
getProtocol in interface Connector- Overrides:
getProtocol in class JettyHttpConnector
- Returns:
- the primary protocol name for endpoints of this connector
getClientKeyStore
public String getClientKeyStore()
- Specified by:
getClientKeyStore in interface TlsIndirectKeyStore
- Returns:
- The location (resolved relative to the current classpath and file system, if possible)
of the keystore that contains public certificates and private keys for identification.
getClientKeyStorePassword
public String getClientKeyStorePassword()
- Specified by:
getClientKeyStorePassword in interface TlsIndirectKeyStore
- Returns:
- The password used to protect the keystore itself
getClientKeyStoreType
public String getClientKeyStoreType()
- Specified by:
getClientKeyStoreType in interface TlsIndirectKeyStore
- Returns:
- The type of keystore used in
TlsIndirectKeyStore.setClientKeyStore(String)
getKeyManagerAlgorithm
public String getKeyManagerAlgorithm()
- Specified by:
getKeyManagerAlgorithm in interface TlsDirectKeyStore
- Returns:
- The algorithm used by the key store. The default comes from {
getKeyManagerFactory
public KeyManagerFactory getKeyManagerFactory()
- Specified by:
getKeyManagerFactory in interface TlsDirectKeyStore
- Returns:
- A source of key stores generated from the parameters supplied here.
getKeyPassword
public String getKeyPassword()
- Specified by:
getKeyPassword in interface TlsDirectKeyStore
- Returns:
- The password used to protect the private key(s)
getKeyStore
public String getKeyStore()
- Specified by:
getKeyStore in interface TlsDirectKeyStore
- Returns:
- The location (resolved relative to the current classpath and file system, if possible)
of the keystore that contains public certificates and private keys for identification.
getKeyStoreType
public String getKeyStoreType()
- Specified by:
getKeyStoreType in interface TlsDirectKeyStore
- Returns:
- The type of keystore used in
TlsDirectKeyStore.getKeyStore()
getProtocolHandler
public String getProtocolHandler()
- Specified by:
getProtocolHandler in interface TlsProtocolHandler
getProvider
public Provider getProvider()
getSecurityProviderFactory
public SecurityProviderFactory getSecurityProviderFactory()
getSslType
public String getSslType()
getKeyStorePassword
public String getKeyStorePassword()
- Specified by:
getKeyStorePassword in interface TlsDirectKeyStore
- Returns:
- The password used to protect the keystore itself
getTrustManagerAlgorithm
public String getTrustManagerAlgorithm()
- Specified by:
getTrustManagerAlgorithm in interface TlsDirectTrustStore
- Returns:
- The algorithm used by the trust store. The default comes from
AutoDiscoverySecurityProviderFactory
getTrustManagerFactory
public TrustManagerFactory getTrustManagerFactory()
- Specified by:
getTrustManagerFactory in interface TlsDirectTrustStore
- Returns:
- Either the factory defined by
TlsDirectTrustStore.setTrustManagerFactory(TrustManagerFactory) or one
constructed from the parameters in this interface (TlsDirectTrustStore.setTrustStoreType(String) etc).
getTrustStore
public String getTrustStore()
- Specified by:
getTrustStore in interface TlsIndirectTrustStore
- Returns:
- The location (resolved relative to the current classpath and file system, if possible)
of the keystore that contains public certificates of trusted servers.
getTrustStorePassword
public String getTrustStorePassword()
- Specified by:
getTrustStorePassword in interface TlsIndirectTrustStore
- Returns:
- The password used to protected the trust store defined in
TlsIndirectTrustStore.getTrustStore()
getTrustStoreType
public String getTrustStoreType()
- Specified by:
getTrustStoreType in interface TlsDirectTrustStore
- Returns:
- The type of keystore used to implement the trust store defined in
TlsIndirectTrustStore.getTrustStore()
isExplicitTrustStoreOnly
public boolean isExplicitTrustStoreOnly()
- Description copied from interface:
TlsDirectTrustStore
- If the trust store is undefined and the trust store generated via System properties then the
key store certificates defined via TODO can be used as a source of trust information.
- Specified by:
isExplicitTrustStoreOnly in interface TlsDirectTrustStore
- Returns:
- true if the key store data should not be used when a trust store is otherwise
undefined
isRequireClientAuthentication
public boolean isRequireClientAuthentication()
- Description copied from interface:
TlsDirectTrustStore
- If a server socket is constructed directly (see
TlsConfiguration) then this flag will
control whether client authenticatin is required. This does not apply to client connections.
- Specified by:
isRequireClientAuthentication in interface TlsDirectTrustStore
- Returns:
- true if clients must be authenticated
setClientKeyStore
public void setClientKeyStore(String clientKeyStore)
throws IOException
- Specified by:
setClientKeyStore in interface TlsIndirectKeyStore
- Parameters:
clientKeyStore - The location of the keystore that contains public certificates and private keys
for identification.
- Throws:
IOException - If the location cannot be resolved via the file system or classpath
setClientKeyStorePassword
public void setClientKeyStorePassword(String clientKeyStorePassword)
- Specified by:
setClientKeyStorePassword in interface TlsIndirectKeyStore
- Parameters:
clientKeyStorePassword - The password used to protect the keystore itself
setClientKeyStoreType
public void setClientKeyStoreType(String clientKeyStoreType)
- Specified by:
setClientKeyStoreType in interface TlsIndirectKeyStore
setExplicitTrustStoreOnly
public void setExplicitTrustStoreOnly(boolean explicitTrustStoreOnly)
- Description copied from interface:
TlsDirectTrustStore
- If the trust store is undefined and the trust store generated via System properties then the
key store certificates defined via TODO can be used as a source of trust information.
- Specified by:
setExplicitTrustStoreOnly in interface TlsDirectTrustStore
- Parameters:
explicitTrustStoreOnly - true if the key store data should not be used when a trust
store is otherwise undefined
setKeyManagerAlgorithm
public void setKeyManagerAlgorithm(String keyManagerAlgorithm)
- Specified by:
setKeyManagerAlgorithm in interface TlsDirectKeyStore
- Parameters:
keyManagerAlgorithm - The algorithm used by the key store. The default comes from {
setKeyPassword
public void setKeyPassword(String keyPassword)
- Specified by:
setKeyPassword in interface TlsDirectKeyStore
- Parameters:
keyPassword - The password used to protect the private key(s)
setKeyStore
public void setKeyStore(String keyStore)
throws IOException
- Specified by:
setKeyStore in interface TlsDirectKeyStore
- Parameters:
keyStore - The location of the keystore that contains public certificates and private keys
for identification.
- Throws:
IOException - If the location cannot be resolved via the file system or classpath
setKeyStoreType
public void setKeyStoreType(String keystoreType)
- Specified by:
setKeyStoreType in interface TlsDirectKeyStore
- Parameters:
keystoreType - The type of keystore used in TlsDirectKeyStore.setKeyStore(String)
setProtocolHandler
public void setProtocolHandler(String protocolHandler)
- Specified by:
setProtocolHandler in interface TlsProtocolHandler
setProvider
public void setProvider(Provider provider)
setRequireClientAuthentication
public void setRequireClientAuthentication(boolean requireClientAuthentication)
- Description copied from interface:
TlsDirectTrustStore
- If a server socket is constructed directly (see
TlsConfiguration) then this flag will
control whether client authenticatin is required. This does not apply to client connections.
- Specified by:
setRequireClientAuthentication in interface TlsDirectTrustStore
- Parameters:
requireClientAuthentication - true if clients must be authenticated
setSecurityProviderFactory
public void setSecurityProviderFactory(SecurityProviderFactory spFactory)
setSslType
public void setSslType(String sslType)
setKeyStorePassword
public void setKeyStorePassword(String storePassword)
- Specified by:
setKeyStorePassword in interface TlsDirectKeyStore
- Parameters:
storePassword - The password used to protect the keystore itself
setTrustManagerAlgorithm
public void setTrustManagerAlgorithm(String trustManagerAlgorithm)
- Specified by:
setTrustManagerAlgorithm in interface TlsDirectTrustStore
- Parameters:
trustManagerAlgorithm - The algorithm used by the trust store. The default comes from
AutoDiscoverySecurityProviderFactory
setTrustManagerFactory
public void setTrustManagerFactory(TrustManagerFactory trustManagerFactory)
- Specified by:
setTrustManagerFactory in interface TlsDirectTrustStore
- Parameters:
trustManagerFactory - The source of trust information if the store is accessed directly
(some connectors generate trust stores indirectly through System properties in which case this
value will be ignored - see TlsConfiguration).
setTrustStore
public void setTrustStore(String trustStore)
throws IOException
- Specified by:
setTrustStore in interface TlsIndirectTrustStore
- Parameters:
trustStore - The location of the keystore that contains public certificates of trusted servers.
- Throws:
IOException - If the location cannot be resolved via the file system or classpath
setTrustStorePassword
public void setTrustStorePassword(String trustStorePassword)
- Specified by:
setTrustStorePassword in interface TlsIndirectTrustStore
- Parameters:
trustStorePassword - The password used to protected the trust store defined in
TlsIndirectTrustStore.setTrustStore(String)
setTrustStoreType
public void setTrustStoreType(String trustStoreType)
- Specified by:
setTrustStoreType in interface TlsDirectTrustStore
- Parameters:
trustStoreType - The type of keystore used to implement the trust store defined in
TlsIndirectTrustStore.setTrustStore(String)
createJettyConnector
protected org.mortbay.jetty.AbstractConnector createJettyConnector()
- Overrides:
createJettyConnector in class JettyHttpConnector
Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.