Class BaseWSClientContentProvider

All Implemented Interfaces:
IPageFlowScopeAdapter, IContentProvider, IRefreshable, IRefreshableContentProvider, IUpdateableContentProvider, Serializable, EventListener, HttpSessionBindingListener
Direct Known Subclasses:
GlueWSClientContentProvider

public abstract class BaseWSClientContentProvider extends ObjectMethodContentProvider implements HttpSessionBindingListener

Base web service client content provider implementation. Subclasses must implement getObjectInstance() to return web service proxy object

See Also:
  • Field Details

  • Constructor Details

    • BaseWSClientContentProvider

      public BaseWSClientContentProvider(Class<?> objectType, String method, String[] parameterNames)
    • BaseWSClientContentProvider

      public BaseWSClientContentProvider(Class<?> objectType, String method)
  • Method Details

    • initParams

      protected void initParams()
    • getObjectInstance

      protected abstract Object getObjectInstance() throws ContentProviderException
      Description copied from class: ObjectMethodContentProvider
      Returns object instance to call the method on
      Overrides:
      getObjectInstance in class ObjectMethodContentProvider
      Returns:
      object instance
      Throws:
      ContentProviderException
    • getEndpointAddress

      public String getEndpointAddress()
      Returns service endpoint address. Maybe null, in this case the one from the WSDL document is used.
      Returns:
      serivce endpoint address or null for default
    • setEndpointAddress

      public void setEndpointAddress(String endpointAddress)
      Sets new endpoint address. Can be null to use default from the WSDL document.
      Parameters:
      endpointAdrress - new endpoint address
    • getWsdlUrl

      protected String getWsdlUrl()
      Returns wsdl document url
      Returns:
      wsdl document url
    • setWsdlUrl

      protected void setWsdlUrl(String wsldUrl)
      Sets wsdl document url
      Parameters:
      wsldUrl - new wsdl document url, must not be null
    • lookupEnviromentValue

      protected static Object lookupEnviromentValue(String key, Object defaulValue)
      Lookups JNDI enviroment variable
      Parameters:
      key - environment variable name
      Returns:
      enviroment variable value or null
    • lookupEnviromentValue

      protected static Object lookupEnviromentValue(String key, Object defaulValue, String applicationName)
      Lookups JNDI enviroment variable
      Parameters:
      key - environment variable name
      applicationName - application name
      Returns:
      enviroment variable value or null
    • getApplicationName

      protected String getApplicationName(Class<?> clazz)
    • release

      protected void release()
      Override this method to release any resources associated with this session. Please note, the FacesContext is not valid for this function
    • valueBound

      public void valueBound(HttpSessionBindingEvent bindEvent)
      Specified by:
      valueBound in interface HttpSessionBindingListener
    • valueUnbound

      public void valueUnbound(HttpSessionBindingEvent unbindEvent)
      Specified by:
      valueUnbound in interface HttpSessionBindingListener