org.exoplatform.services.wsrp.consumer.adapters
Class WSRPBaseRequestAdapter

java.lang.Object
  extended by org.exoplatform.services.wsrp.consumer.adapters.WSRPBaseRequestAdapter
All Implemented Interfaces:
WSRPBaseRequest
Direct Known Subclasses:
WSRPInteractionRequestAdapter, WSRPMarkupRequestAdapter

public class WSRPBaseRequestAdapter
extends Object
implements WSRPBaseRequest


Constructor Summary
WSRPBaseRequestAdapter()
           
 
Method Summary
 String[] getCharacterEncodingSet()
          Get the character sets the consumer wants the remote portlet to use for encoding the markup.
 org.exoplatform.services.wsrp.type.ClientData getClientData()
          Get the ClientData structure which carries information about the end user agent.
 String[] getLocales()
          Get the locales which are supported by the portlet according to the client connecting to it.
 String[] getMimeTypes()
          Get an array of mime types which are supported by the end user device.
 String getMode()
          Get the current mode of the portlet
 String[] getModes()
          Get the list of wsrp modes which are supported by the portlet.
 String getNavigationalState()
          Get the current navigational state of the portlet
 String getPortletInstanceKey()
          Get an opaque string which corresponds to a unique reference to this use of the portlet.
 String getSessionID()
          Get the ID of the session context
 String getUserAuthentication()
          Get the method which is used by the consumer to authenticate its users.
 String getWindowState()
          Get the current window state of the portlet
 String[] getWindowStates()
          Get the list of wsrp window states which are supported by the portlet.
 boolean isModeSupported(String wsrpMode)
          Checks wether a given wsrp mode is supported by the portlet.
 boolean isWindowStateSupported(String wsrpWindowState)
          Checks wether a given wsrp window state is supported by the portlet.
 void setCharacterEncodingSet(String[] characterEncodingSet)
           
 void setClientData(org.exoplatform.services.wsrp.type.ClientData clientData)
           
 void setLocales(String[] locales)
           
 void setMimeTypes(String[] mimeTypes)
           
 void setMode(String mode)
           
 void setModes(String[] modes)
           
 void setNavigationalState(String navigationalState)
           
 void setPortletInstanceKey(String portletInstanceKey)
           
 void setSessionID(String sessionID)
           
 void setUserAuthentication(String userAuthentication)
           
 void setWindowState(String windowState)
           
 void setWindowStates(String[] windowStates)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSRPBaseRequestAdapter

public WSRPBaseRequestAdapter()
Method Detail

getSessionID

public String getSessionID()
Description copied from interface: WSRPBaseRequest
Get the ID of the session context

Specified by:
getSessionID in interface WSRPBaseRequest
Returns:
The session context

setSessionID

public void setSessionID(String sessionID)

getPortletInstanceKey

public String getPortletInstanceKey()
Description copied from interface: WSRPBaseRequest
Get an opaque string which corresponds to a unique reference to this use of the portlet.

Specified by:
getPortletInstanceKey in interface WSRPBaseRequest
Returns:
The portlet instance key

setPortletInstanceKey

public void setPortletInstanceKey(String portletInstanceKey)

getNavigationalState

public String getNavigationalState()
Description copied from interface: WSRPBaseRequest
Get the current navigational state of the portlet

Specified by:
getNavigationalState in interface WSRPBaseRequest
Returns:
The navigational state

setNavigationalState

public void setNavigationalState(String navigationalState)

getWindowState

public String getWindowState()
Description copied from interface: WSRPBaseRequest
Get the current window state of the portlet

Specified by:
getWindowState in interface WSRPBaseRequest
Returns:
The window state

setWindowState

public void setWindowState(String windowState)

getMode

public String getMode()
Description copied from interface: WSRPBaseRequest
Get the current mode of the portlet

Specified by:
getMode in interface WSRPBaseRequest
Returns:
The mode of the portlet

setMode

public void setMode(String mode)

getClientData

public org.exoplatform.services.wsrp.type.ClientData getClientData()
Description copied from interface: WSRPBaseRequest
Get the ClientData structure which carries information about the end user agent.

Specified by:
getClientData in interface WSRPBaseRequest
Returns:
The ClientData specifying the user agent.

setClientData

public void setClientData(org.exoplatform.services.wsrp.type.ClientData clientData)

getLocales

public String[] getLocales()
Description copied from interface: WSRPBaseRequest
Get the locales which are supported by the portlet according to the client connecting to it. The Locales returned are in the form of (ISO-639 + "-" + ISO-3166)

Specified by:
getLocales in interface WSRPBaseRequest
Returns:
Array with string representations of the locales which are supported by the consumer

setLocales

public void setLocales(String[] locales)

getModes

public String[] getModes()
Description copied from interface: WSRPBaseRequest
Get the list of wsrp modes which are supported by the portlet. This should returned the list of all actuall supported modes and not necessarily the modes returned in the portlet description of the producer.

Specified by:
getModes in interface WSRPBaseRequest
Returns:
Array with string representations of the portlet modes supported by the portlet or null

setModes

public void setModes(String[] modes)

getWindowStates

public String[] getWindowStates()
Description copied from interface: WSRPBaseRequest
Get the list of wsrp window states which are supported by the portlet. This should returned the list of all actuall supported window states and not necessarily the window states returned in the portlet description of the producer.

Specified by:
getWindowStates in interface WSRPBaseRequest
Returns:
Array with string representations of the window states supported by the portlet or null

setWindowStates

public void setWindowStates(String[] windowStates)

getMimeTypes

public String[] getMimeTypes()
Description copied from interface: WSRPBaseRequest
Get an array of mime types which are supported by the end user device. The order in the array defines the order of preference of the end user.

Specified by:
getMimeTypes in interface WSRPBaseRequest
Returns:
An array of mimes types the consumer supports or null

setMimeTypes

public void setMimeTypes(String[] mimeTypes)

getCharacterEncodingSet

public String[] getCharacterEncodingSet()
Description copied from interface: WSRPBaseRequest
Get the character sets the consumer wants the remote portlet to use for encoding the markup. Valid character sets are defined here

Specified by:
getCharacterEncodingSet in interface WSRPBaseRequest
Returns:
Array of string representations of the character encoding.

setCharacterEncodingSet

public void setCharacterEncodingSet(String[] characterEncodingSet)

getUserAuthentication

public String getUserAuthentication()
Description copied from interface: WSRPBaseRequest
Get the method which is used by the consumer to authenticate its users.

Specified by:
getUserAuthentication in interface WSRPBaseRequest
Returns:
String indicating how end-users were authenticated by the consumer.

setUserAuthentication

public void setUserAuthentication(String userAuthentication)

isModeSupported

public boolean isModeSupported(String wsrpMode)
Description copied from interface: WSRPBaseRequest
Checks wether a given wsrp mode is supported by the portlet.

Specified by:
isModeSupported in interface WSRPBaseRequest
Parameters:
wsrpMode - The wsrp mode
Returns:
True if the mode is supported by the portlet, false otherwise

isWindowStateSupported

public boolean isWindowStateSupported(String wsrpWindowState)
Description copied from interface: WSRPBaseRequest
Checks wether a given wsrp window state is supported by the portlet.

Specified by:
isWindowStateSupported in interface WSRPBaseRequest
Parameters:
wsrpWindowState - The wsrp window state
Returns:
True if the window state is supported by the portlet, false otherwise


Copyright © 2009 eXo Platform SAS. All Rights Reserved.