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

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

public class WSRPBaseRequestAdapter
extends Object
implements WSRPBaseRequest


Constructor Summary
WSRPBaseRequestAdapter()
           
 
Method Summary
 org.exoplatform.services.wsrp2.type.ClientData getClientData()
          Get the ClientData structure which carries information about the end user agent.
 org.exoplatform.services.wsrp2.type.Extension[] getExtensions()
           
 String[] getLocales()
          Get the locales which are supported by the portlet according to the client connecting to it.
 String[] getMarkupCharacterSets()
          Get the character sets the consumer wants the remote portlet to use for encoding the markup.
 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 getNavigationalState()
          Get the current navigational state of the portlet
 org.exoplatform.services.wsrp2.type.NamedString[] getNavigationalValues()
          Get the current navigational values 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 getValidateTag()
           
 String[] getValidNewModes()
          Get the list of wsrp modes which are supported by the portlet.
 String[] getValidNewWindowStates()
          Get the list of wsrp window states which are supported by the portlet.
 String getWindowState()
          Get the current window state of the portlet
 boolean isModeSupported(String wsrpMode)
          Checks wether a given wsrp mode is supported by the portlet.
 boolean isSecureClientCommunication()
           
 boolean isWindowStateSupported(String wsrpWindowState)
          Checks wether a given wsrp window state is supported by the portlet.
 void setClientData(org.exoplatform.services.wsrp2.type.ClientData clientData)
           
 void setExtensions(org.exoplatform.services.wsrp2.type.Extension[] extensions)
           
 void setLocales(String[] locales)
           
 void setMarkupCharacterSets(String[] markupCharacterSets)
           
 void setMimeTypes(String[] mimeTypes)
           
 void setMode(String mode)
           
 void setNavigationalState(String navigationalState)
           
 void setNavigationalValues(org.exoplatform.services.wsrp2.type.NamedString[] navigationalValues)
           
 void setPortletInstanceKey(String portletInstanceKey)
           
 void setSecureClientCommunication(boolean secureClientCommunication)
           
 void setSessionID(String sessionID)
           
 void setUserAuthentication(String userAuthentication)
           
 void setValidateTag(String validateTag)
           
 void setValidNewModes(String[] validNewModes)
           
 void setValidNewWindowStates(String[] validNewWindowStates)
           
 void setWindowState(String windowState)
           
 
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.wsrp2.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.wsrp2.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)

getValidNewModes

public String[] getValidNewModes()
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:
getValidNewModes in interface WSRPBaseRequest
Returns:
Array with string representations of the portlet modes supported by the portlet or null

setValidNewModes

public void setValidNewModes(String[] validNewModes)

getValidNewWindowStates

public String[] getValidNewWindowStates()
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:
getValidNewWindowStates in interface WSRPBaseRequest
Returns:
Array with string representations of the window states supported by the portlet or null

setValidNewWindowStates

public void setValidNewWindowStates(String[] validNewWindowStates)

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)

getMarkupCharacterSets

public String[] getMarkupCharacterSets()
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:
getMarkupCharacterSets in interface WSRPBaseRequest
Returns:
Array of string representations of the character encoding.

setMarkupCharacterSets

public void setMarkupCharacterSets(String[] markupCharacterSets)

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

getNavigationalValues

public org.exoplatform.services.wsrp2.type.NamedString[] getNavigationalValues()
Description copied from interface: WSRPBaseRequest
Get the current navigational values of the portlet

Specified by:
getNavigationalValues in interface WSRPBaseRequest
Returns:
The navigational values

setNavigationalValues

public void setNavigationalValues(org.exoplatform.services.wsrp2.type.NamedString[] navigationalValues)

getValidateTag

public String getValidateTag()
Specified by:
getValidateTag in interface WSRPBaseRequest

setValidateTag

public void setValidateTag(String validateTag)

getExtensions

public org.exoplatform.services.wsrp2.type.Extension[] getExtensions()
Specified by:
getExtensions in interface WSRPBaseRequest

setExtensions

public void setExtensions(org.exoplatform.services.wsrp2.type.Extension[] extensions)

isSecureClientCommunication

public boolean isSecureClientCommunication()
Specified by:
isSecureClientCommunication in interface WSRPBaseRequest

setSecureClientCommunication

public void setSecureClientCommunication(boolean secureClientCommunication)

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)


Copyright © 2009 eXo Platform SAS. All Rights Reserved.