public class SOAPServiceFactory extends Object implements ManageableServiceFactory
| Modifier and Type | Class and Description |
|---|---|
protected static class |
SOAPServiceFactory.WSDLInfo |
DEFAULT_TIMEOUT_MS, WSRP1, WSRP2| Constructor and Description |
|---|
SOAPServiceFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
enableWSS(boolean enable)
Specifies whether WS-Security (WSS) is activated when accessing the services held by this ServiceFactory.
|
MarkupService |
getMarkupService() |
PortletManagementService |
getPortletManagementService() |
RegistrationService |
getRegistrationService() |
<T> T |
getService(Class<T> clazz)
Generic, typesafe version of the get*Service methods.
|
ServiceDescriptionService |
getServiceDescriptionService() |
String |
getWsdlDefinitionURL()
Retrieves the current String representation of the remote producer's WSDL URL.
|
int |
getWSOperationTimeOut()
Retrieves the current number of milliseconds this factory waits before deciding that a WS operation has timed out.
|
org.gatein.common.util.Version |
getWSRPVersion()
Returns the WSRP version of the remote service that this ServiceFactory connects to or
null if the
ServiceFactory is not available. |
boolean |
isAvailable()
Determines whether or not this ServiceFactory is able to provide services.
|
boolean |
isFailed()
Determines whether or not this ServiceFactory is in a permanent state of failure which cannot be recovered from
without user intervention.
|
boolean |
isWSSAvailable()
Determines whether WS-Security is configured and available to be enabled on this ServiceFactory.
|
boolean |
isWSSEnabled()
Retrieves whether WSS is enabled or not on this ServiceFactory
|
boolean |
refresh(boolean force)
Refreshes (if needed) the information held by this factory from the producer's WSDL.
|
void |
setAvailable(boolean available) |
void |
setFailed(boolean failed) |
void |
setWsdlDefinitionURL(String wsdlDefinitionURL)
Specifies the URL of the WSDL that needs to be analyzed for WSRP service publication.
|
void |
setWSOperationTimeOut(int msBeforeTimeOut)
Specifies how many milliseconds this factory waits before deciding a WS operation is considered as having timed out.
|
void |
start()
Performs initialization of this ServiceFactory based on available connection metadata.
|
void |
stop()
Performs any clean-up operation needed when this factory is being shutdown.
|
public <T> T getService(Class<T> clazz) throws Exception
ServiceFactorygetService in interface ServiceFactoryT - the generic type of the service we're trying to retrieveclazz - the expected class of the service we're trying to retrieveException - if the service couldn't be initialized or retrievedpublic boolean isAvailable()
ServiceFactoryServiceFactory.isFailed() status.isAvailable in interface ServiceFactorytrue if this ServiceFactory is ready to provide services, false otherwise.public boolean isFailed()
ServiceFactoryisFailed in interface ServiceFactorytrue if this ServiceFactory is not configured properly, false otherwise.public void stop()
ServiceFactorystop in interface ServiceFactorypublic void setFailed(boolean failed)
setFailed in interface ManageableServiceFactorypublic void setAvailable(boolean available)
setAvailable in interface ManageableServiceFactorypublic void setWSOperationTimeOut(int msBeforeTimeOut)
ServiceFactorysetWSOperationTimeOut in interface ServiceFactorymsBeforeTimeOut - number of milliseconds to wait for a WS operation to return before timing out. Will be set
to ServiceFactory.DEFAULT_TIMEOUT_MS if negative.public int getWSOperationTimeOut()
ServiceFactorygetWSOperationTimeOut in interface ServiceFactorypublic String getWsdlDefinitionURL()
ServiceFactorygetWsdlDefinitionURL in interface ServiceFactorypublic void setWsdlDefinitionURL(String wsdlDefinitionURL)
ServiceFactorysetWsdlDefinitionURL in interface ServiceFactorywsdlDefinitionURL - a String representation of the URL of the remote producer's WSDLpublic void start()
throws Exception
ServiceFactorystart in interface ServiceFactoryException - if initialization and connection to the remote service couldn't be performed.public ServiceDescriptionService getServiceDescriptionService() throws Exception
getServiceDescriptionService in interface ServiceFactoryExceptionpublic MarkupService getMarkupService() throws Exception
getMarkupService in interface ServiceFactoryExceptionpublic PortletManagementService getPortletManagementService() throws Exception
getPortletManagementService in interface ServiceFactoryExceptionpublic RegistrationService getRegistrationService() throws Exception
getRegistrationService in interface ServiceFactoryExceptionpublic org.gatein.common.util.Version getWSRPVersion()
ServiceFactorynull if the
ServiceFactory is not available.getWSRPVersion in interface ServiceFactorypublic boolean refresh(boolean force)
throws Exception
ServiceFactoryrefresh in interface ServiceFactoryforce - whether or not to force the refresh (i.e. retrieval and parsing of the WSDL information), regardless of potential cachetrue if a refresh occurred as a result of this operation, false otherwiseExceptionpublic void enableWSS(boolean enable)
ServiceFactoryenableWSS in interface ServiceFactoryenable - true to activate WS-Security, false to disable itpublic boolean isWSSEnabled()
ServiceFactoryisWSSEnabled in interface ServiceFactorytrue if WSS is enable for this ServiceFactory, false otherwisepublic boolean isWSSAvailable()
ServiceFactorytrue.isWSSAvailable in interface ServiceFactorytrue if WS-Security is configured and available, false otherwiseCopyright © 2006-2014 GateIn. All Rights Reserved.