public class HTTPSFabricConnectionFactory extends FabricConnectionFactory
Title: Service Event Fabric Client
Description: Defines a factory intended for creation of the HTTPSClientFabricConnection
instances.
Copyright: Copyright (c) 2012
Company: StreamScape Technologies
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_PORT_HTTPS |
static java.lang.String |
HTTPS_CLIENT_TYPE_NAME |
static java.lang.String |
HTTPS_LOCAL_URL |
DEFAULT_SERIAL_VERSION_ID
Constructor and Description |
---|
HTTPSFabricConnectionFactory()
Creates a new factory.
|
HTTPSFabricConnectionFactory(java.lang.String url)
Creates a new factory with the specified URL.
|
Modifier and Type | Method and Description |
---|---|
void |
addURL(java.lang.String url)
Adds the specified URL to the list of URLs.
|
HTTPSFabricConnection |
createConnection()
Creates a new connection.
|
HTTPSFabricConnection |
createConnection(java.lang.String securityToken)
Creates a new connection with the specified
Web Application Token token. |
HTTPSFabricConnection |
createConnection(java.lang.String userName,
java.lang.String password)
Creates a new connection with the specified user credentials.
|
void |
setSecurityToken(java.lang.String securityToken)
Sets the specified security token of the factory.
|
void |
setSSLContextFactory(SSLContextFactory sslContextFactory) |
getDescription, getEventScope, getName, getObjectInstance, getReconnectAttempts, getReconnectInterval, getReference, getType, getURLs, getUserName, removeURL, setDescription, setEventScope, setName, setPassword, setReconnectAttempts, setReconnectInterval, setType, setUserName
getContext, getContextType, hasContext
clone, getSerialVersionUID
public static final java.lang.String HTTPS_LOCAL_URL
public static final java.lang.String HTTPS_CLIENT_TYPE_NAME
public static final int DEFAULT_PORT_HTTPS
public HTTPSFabricConnectionFactory() throws FabricConnectionFactoryException
FabricConnectionFactoryException
public HTTPSFabricConnectionFactory(java.lang.String url) throws FabricConnectionFactoryException
url
- the factory URL.FabricConnectionFactoryException
public void addURL(java.lang.String url) throws FabricConnectionFactoryException
FabricConnectionFactory
If this list contains only local URLs (tlp://local
) other URLs cannot be added.
And vice versa, a local URL cannot be added to the list containing non-local URLs.
Non-local URLs must have the following format: <Protocol>://<Host>:<Port>
(e.g. tlp://localhost:5000
).
addURL
in class FabricConnectionFactory
url
- the URL to be added.FabricConnectionFactoryException
- if the specified URL has wrong format or
if the specified URL is not allowed.public HTTPSFabricConnection createConnection() throws FabricConnectionFactoryException
FabricConnectionFactory
tlp://local
)
a local (embedded) connection will be created. In other case a remote connection will be created.createConnection
in class FabricConnectionFactory
FabricConnectionFactoryException
- if some error occurs.public HTTPSFabricConnection createConnection(java.lang.String userName, java.lang.String password) throws FabricConnectionFactoryException
FabricConnectionFactory
tlp://local
)
a local (embedded) connection will be created. In other case a remote connection will be created.createConnection
in class FabricConnectionFactory
userName
- the specified user name.password
- the specified user password.FabricConnectionFactoryException
- if some error occurs.public HTTPSFabricConnection createConnection(java.lang.String securityToken) throws FabricConnectionFactoryException
FabricConnectionFactory
Web Application Token
token.
tlp://local
)
a local (embedded) connection will be created. In other case a remote connection will be created.createConnection
in class FabricConnectionFactory
securityToken
- the specified security token.FabricConnectionFactoryException
- if some error occurs.public void setSecurityToken(java.lang.String securityToken)
FabricConnectionFactory
setSecurityToken
in class FabricConnectionFactory
securityToken
- the value to be set.public void setSSLContextFactory(SSLContextFactory sslContextFactory)
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.