|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.genesyslab.soa.client.ws.WebServicesFactory
| Nested Class Summary | |
class |
WebServicesFactory.InvocationContext
|
static class |
WebServicesFactory.NotificationContext
|
| Field Summary | |
static java.lang.String |
AXIS_CLIENT_CONFIG_FILE
Optional axis configuration file , key axis.ClientConfigFile, default value
client-config.wsdd. |
protected java.lang.String |
axisClientConfigFile
|
protected com.genesyslab.soa.client.ws.AxisServer |
axisServer
|
static java.util.Hashtable |
axisServers
|
static java.lang.String |
BACKUP_URLS
Backup Urls constant, key BackupUrls. |
static java.lang.String |
CONNECTION_DEFAULT_CONNECTION_TIMEOUT_KEY
the key for the Axis Property that sets the default connection timeout in millisecs for the httpclient. |
static java.lang.String |
CONNECTION_DEFAULT_SO_TIMEOUT_KEY
the key for the Axis Property that sets the read timeout in millisecs for the httpclient Key axis.http.client.maximum.total.connections, default value 0 means infinite value. |
static java.lang.String |
CONNECTION_POOL_TIMEOUT_KEY
the key for the Axis Property that sets the connection pool timeout for the httpclient pool. |
static java.lang.String |
CONNECTION_TIMEOUT
Timeout used by transport sender in seconds. key ConnectionTimeout, default 45
seconds, specify -1 to disable. |
static java.lang.String |
DEFAULT_SESSION_ID_PARAMETER
Session identifier parameter, key ? |
static java.lang.String |
DEFAULT_SUFFIX_URL
Suffix Ail services Url constant, key AisSuffixUrl, default value |
protected java.io.InputStream |
deployWSDDDocumentFileStream
|
protected java.io.InputStream |
deployWSDDRpcFileStream
|
static java.lang.String |
DOCUMENT_MODE
Optional document mode. key DocumentMode, default false. |
protected boolean |
documentMode
|
static java.lang.String |
DOMAIN_NAME
Optional domain name. key DomainName. |
protected java.lang.String |
domainName
|
static java.lang.String |
ENABLE_HTTP_COMMONS_SENDER
Use internal HTTP commons sender for HTTP 1.1. |
static java.lang.String |
GIS_ASYNCHRONOUS_CONNECTION_INTERVAL
Asynchronous connection Interval, key gis.asynchronousConnectionInterval, default value
30. |
static java.lang.String |
GIS_CHECK_SESSION_INTERVAL
Sets check session interval in seconds. if 0, no session ckecking. |
protected java.lang.String |
GIS_LICENSE
|
static java.lang.String |
GIS_PASSWORD
Sets the GIS password to the factory, key gis.password. |
static java.lang.String |
GIS_SESSION_ID
Sets the GIS session id to the factory, key gis.sessionId. |
static java.lang.String |
GIS_SESSION_ID_PARAMETER_NAME
Sets the GIS session id parameter name, key gis.sessionIdParameterName, default value? |
static java.lang.String |
GIS_TENANT
Sets the GIS tenant to the factory. |
static java.lang.String |
GIS_USERNAME
Sets the GIS username to the factory, key gis.username. |
java.lang.String |
gisSessionIdParameter
|
static java.lang.String |
HTTP_PROXY_HOST
Hostname of proxy server. key http.proxyHost. |
static java.lang.String |
HTTP_PROXY_PASSWORD
Optional proxy server password. key http.proxyPassword. |
static java.lang.String |
HTTP_PROXY_PORT
Port on server of proxy. key http.proxyPort. |
static java.lang.String |
HTTP_PROXY_USER
Optional username for proxy authentication. key http.proxyUser. |
protected int |
httpPort
|
static java.lang.String |
INVALID_XML_CHAR_SUBSTITUTE
Invalid Xml char substitute. |
boolean |
licenseTaken
|
protected static Log |
logger
|
boolean |
loginDone
|
static java.lang.String |
MAINTAIN_SESSION
Participate in a session with the endpoint. key MaintainSession, default value true. |
protected boolean |
maintainSession
|
static java.lang.String |
MAXIMUM_CONNECTIONS_PER_HOST_PROPERTY_KEY
the key for the Axis Property that controls the maximum connections per host allowed by the httpclient pool. |
static java.lang.String |
MAXIMUM_TOTAL_CONNECTIONS_PROPERTY_KEY
The key for the Axis Property that controls the maximum total connections allowed in the httpclient pool. |
static java.lang.String |
NB_RETRIES_ON_FAILURE
Sets the number of retries in case on failure connection, key NbRetriesOnFailure, default value
0. |
static java.lang.String |
NOTIF_APPEND_URI
Notification append object URI to reachable URL, key |
static java.lang.String |
NOTIF_BY_HOSTNAME
Notification by hostname, key notification.byHostname, default valuefalse, true
sends hostname, false sends IP address. |
static java.lang.String |
NOTIF_ENABLE_MULTIPLE_ADDRESSES
Notification enable multiple addresses, key notification.enableMultipleAddresses, default valuefalse. |
static java.lang.String |
NOTIF_HTTP_PORT
Notification HTTP port, key notification.HTTPport. |
static java.lang.String |
NOTIF_IP_ADDRESS
Notification IP Address, key notification.IPAddress. |
static java.lang.String |
NOTIF_MAX_POOL_SIZE
Notification maximum pool size, key |
static java.lang.String |
NOTIF_REACHABLE_URL
Notification reachable uri from server, key notification.reachableURL>. |
protected java.lang.String |
notificationIPAddress
|
protected java.lang.String |
notifyUrlDocument
|
protected java.lang.String |
notifyUrlRpc
|
static java.lang.String |
OPTION_CLIENT_CONFIG_FILE
the key for the Axis Property that sets the client-config.wsdd. |
protected java.lang.String |
password
|
static java.lang.String |
PASSWORD
Password for authentication. key Password. |
static java.lang.String |
RETRY_PERIOD_ON_FAILURE
Sets the retry period in case on failure connection, 0 means no period. |
static java.lang.String |
SERVICE_POINT_CONNECTION_LIMIT
|
static java.lang.String |
SERVICE_POINT_MAX_IDLE_TIME
|
static java.lang.String |
SERVICE_POINT_MGR_CONNECTION_LIMIT
|
static java.lang.String |
SERVICE_POINT_MGR_MAX_IDLE_TIME
|
static java.lang.String |
SERVICE_POINT_URL
|
protected java.util.Properties |
services
|
protected java.util.Hashtable |
servicesReverse
|
static java.util.Hashtable |
subscribers
|
static java.lang.String |
SUFFIX_URL
Suffix Url constant, key SuffixUrl default value /services/. |
protected int |
timeout
|
static java.lang.String |
URL
Url constant, key Url. |
protected java.lang.String |
username
|
static java.lang.String |
USERNAME
User name for authentication. key Username. |
| Constructor Summary | |
WebServicesFactory()
|
|
| Method Summary | |
boolean |
clearSubscriber(java.lang.String subscriberId)
|
void |
connectToServer()
|
protected boolean |
controlGISSessionService()
|
java.lang.Object |
createService(java.lang.Class serviceClass,
java.util.Properties context)
Create a real service |
static java.lang.reflect.Method |
getMethod(java.lang.Class clazz,
java.lang.String methodName)
|
java.lang.String |
getNextUrl(java.util.ArrayList urls,
java.lang.String failedUrl)
|
java.lang.String |
getNotifyServiceName()
|
java.lang.String[] |
getServices()
Gets all services classname available (ex com.genesyslab.ail.ws.agent.AgentService, com.genesyslab.ail.ws.event.EventService) ; |
void |
initFactory(ServiceFactory factory,
java.util.Properties context,
ServiceFactoryListener listener,
boolean asyncMode)
init Fcatory |
void |
initParameters(java.util.Properties context)
|
java.lang.Object |
interceptEventService(WebServicesFactory.InvocationContext invocationContext)
|
java.lang.Object |
interceptRequest(WebServicesFactory.InvocationContext invocationContext)
|
java.lang.Object |
InternalInvokeServiceMethod(WebServicesFactory.InvocationContext invocationContext)
|
java.lang.Object |
invokeServiceMethod(java.lang.Object realService,
java.lang.String methodName,
java.lang.Object[] parameters)
Invoke a method on a real service. |
java.lang.String |
registerNotifyCallback(java.lang.String subscriberId,
NotifyService notifyService,
java.lang.Object realEventService)
|
void |
releaseFactory()
Release factory |
void |
releaseGISSessionService()
|
void |
removeSubscriber(java.lang.Object realEventService,
java.lang.String subscriberId)
|
void |
removeSubscribers()
|
void |
startAxisServer()
|
void |
stopAxisServer()
|
void |
updateServicesUrl(java.lang.String url)
|
void |
updateServiceUrl(java.lang.Object realService,
java.lang.String url)
|
void |
updateSessionServiceUrl()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static Log logger
public static final java.lang.String URL
Url.
public static final java.lang.String BACKUP_URLS
BackupUrls.
public static final java.lang.String SUFFIX_URL
SuffixUrl default value /services/.
public static final java.lang.String DEFAULT_SUFFIX_URL
AisSuffixUrl, default value
public static final java.lang.String DEFAULT_SESSION_ID_PARAMETER
?GISsessionId=/.
public static final java.lang.String NOTIF_HTTP_PORT
notification.HTTPport. If null, the system will choose an open port.
public static final java.lang.String NOTIF_REACHABLE_URL
notification.reachableURL>.
public static final java.lang.String NOTIF_IP_ADDRESS
notification.IPAddress. If null, the system will choose the local ip
address.
public static final java.lang.String NOTIF_BY_HOSTNAME
notification.byHostname, default valuefalse, true
sends hostname, false sends IP address.
public static final java.lang.String NOTIF_ENABLE_MULTIPLE_ADDRESSES
notification.enableMultipleAddresses, default valuefalse.
public static final java.lang.String NOTIF_MAX_POOL_SIZE
public static final java.lang.String NOTIF_APPEND_URI
public static final java.lang.String GIS_SESSION_ID
gis.sessionId.
public static final java.lang.String GIS_USERNAME
gis.username.
public static final java.lang.String GIS_PASSWORD
gis.password.
public static final java.lang.String GIS_TENANT
gis.tenant.
public static final java.lang.String GIS_SESSION_ID_PARAMETER_NAME
gis.sessionIdParameterName, default value?GISsessionId=.
public static final java.lang.String GIS_CHECK_SESSION_INTERVAL
gis.checkSessionInterval
default value 900 seconds.
public static final java.lang.String MAINTAIN_SESSION
MaintainSession, default value true.
public static final java.lang.String USERNAME
Username.
public static final java.lang.String PASSWORD
Password.
public static final java.lang.String CONNECTION_TIMEOUT
ConnectionTimeout, default 45
seconds, specify -1 to disable.
public static final java.lang.String HTTP_PROXY_HOST
http.proxyHost.
public static final java.lang.String HTTP_PROXY_PORT
http.proxyPort.
public static final java.lang.String HTTP_PROXY_USER
http.proxyUser.
public static final java.lang.String HTTP_PROXY_PASSWORD
http.proxyPassword.
public static final java.lang.String DOMAIN_NAME
DomainName.
public static final java.lang.String DOCUMENT_MODE
DocumentMode, default false.
public static final java.lang.String GIS_ASYNCHRONOUS_CONNECTION_INTERVAL
gis.asynchronousConnectionInterval, default value
30.
public static final java.lang.String AXIS_CLIENT_CONFIG_FILE
axis.ClientConfigFile, default value
client-config.wsdd.
public static final java.lang.String SERVICE_POINT_URL
public static final java.lang.String SERVICE_POINT_CONNECTION_LIMIT
public static final java.lang.String SERVICE_POINT_MAX_IDLE_TIME
public static java.lang.String SERVICE_POINT_MGR_CONNECTION_LIMIT
public static final java.lang.String SERVICE_POINT_MGR_MAX_IDLE_TIME
public static final java.lang.String NB_RETRIES_ON_FAILURE
NbRetriesOnFailure, default value
0.
public static final java.lang.String RETRY_PERIOD_ON_FAILURE
RetryPeriodOnFailure,
default value 1000 milliseconds.
public static final java.lang.String ENABLE_HTTP_COMMONS_SENDER
EnableHttpCommonsSender, default value
false milliseconds.
public static final java.lang.String MAXIMUM_TOTAL_CONNECTIONS_PROPERTY_KEY
axis.http.client.maximum.total.connections, default value 20
public static final java.lang.String MAXIMUM_CONNECTIONS_PER_HOST_PROPERTY_KEY
axis.http.client.maximum.connections.per.host, default value 2
public static final java.lang.String CONNECTION_POOL_TIMEOUT_KEY
axis.http.client.connection.pool.timeout, default value 20
public static final java.lang.String CONNECTION_DEFAULT_CONNECTION_TIMEOUT_KEY
axis.http.client.connection.default.connection.timeout, default value 0 means not
used.
public static final java.lang.String CONNECTION_DEFAULT_SO_TIMEOUT_KEY
axis.http.client.maximum.total.connections, default value 0 means infinite value.
public static final java.lang.String OPTION_CLIENT_CONFIG_FILE
axis.ClientConfigFile, default
value client-config.wsdd.
public static final java.lang.String INVALID_XML_CHAR_SUBSTITUTE
InvalidXmlCharSubstitute,
default value ? milliseconds.
public static java.util.Hashtable axisServers
public static java.util.Hashtable subscribers
public boolean licenseTaken
public boolean loginDone
protected java.lang.String GIS_LICENSE
public java.lang.String gisSessionIdParameter
protected int httpPort
protected com.genesyslab.soa.client.ws.AxisServer axisServer
protected java.lang.String notificationIPAddress
protected boolean maintainSession
protected int timeout
protected java.lang.String username
protected java.lang.String password
protected java.lang.String domainName
protected java.util.Properties services
protected java.util.Hashtable servicesReverse
protected java.io.InputStream deployWSDDRpcFileStream
protected java.io.InputStream deployWSDDDocumentFileStream
protected boolean documentMode
protected java.lang.String notifyUrlRpc
protected java.lang.String notifyUrlDocument
protected java.lang.String axisClientConfigFile
| Constructor Detail |
public WebServicesFactory()
| Method Detail |
public void initFactory(ServiceFactory factory,
java.util.Properties context,
ServiceFactoryListener listener,
boolean asyncMode)
throws ServiceException
BaseServiceFactoryImpl
initFactory in interface BaseServiceFactoryImplfactory - context - listener - asyncMode -
ServiceException
public void connectToServer()
throws ServiceException
ServiceException
public void initParameters(java.util.Properties context)
throws ServiceException
ServiceExceptionpublic void releaseFactory()
BaseServiceFactoryImpl
releaseFactory in interface BaseServiceFactoryImpl
public java.lang.Object createService(java.lang.Class serviceClass,
java.util.Properties context)
throws ServiceException
BaseServiceFactoryImpl
createService in interface BaseServiceFactoryImplserviceClass - (ex com.genesyslab.ail.ws.agent.AgentService, com.genesyslab.ail.ws.event.EventService)context - parameters
ServiceException
public java.lang.String getNextUrl(java.util.ArrayList urls,
java.lang.String failedUrl)
public void updateServiceUrl(java.lang.Object realService,
java.lang.String url)
public void updateSessionServiceUrl()
public void updateServicesUrl(java.lang.String url)
public java.lang.Object invokeServiceMethod(java.lang.Object realService,
java.lang.String methodName,
java.lang.Object[] parameters)
throws ServiceException
BaseServiceFactoryImpl
invokeServiceMethod in interface BaseServiceFactoryImplrealService - methodName - parameters -
ServiceException
public java.lang.Object InternalInvokeServiceMethod(WebServicesFactory.InvocationContext invocationContext)
throws ServiceException
ServiceExceptionpublic java.lang.String getNotifyServiceName()
public static java.lang.reflect.Method getMethod(java.lang.Class clazz,
java.lang.String methodName)
public java.lang.String[] getServices()
BaseServiceFactoryImpl
getServices in interface BaseServiceFactoryImpl
protected boolean controlGISSessionService()
throws ServiceException
ServiceExceptionpublic void releaseGISSessionService()
public void startAxisServer()
public void stopAxisServer()
public void removeSubscribers()
public void removeSubscriber(java.lang.Object realEventService,
java.lang.String subscriberId)
public java.lang.Object interceptRequest(WebServicesFactory.InvocationContext invocationContext)
throws ServiceException
ServiceException
public java.lang.Object interceptEventService(WebServicesFactory.InvocationContext invocationContext)
throws ServiceException
ServiceException
public java.lang.String registerNotifyCallback(java.lang.String subscriberId,
NotifyService notifyService,
java.lang.Object realEventService)
public boolean clearSubscriber(java.lang.String subscriberId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||