org.apache.wsrp4j.consumer
Interface ConsumerCapabilities

All Known Subinterfaces:
ConsumerEnvironment
All Known Implementing Classes:
GenericConsumerEnvironment

public interface ConsumerCapabilities

The consumer capababilities provides access to consumer related information.

Author:
Peter Fischer

Method Summary
 java.lang.String[] getCharacterEncodingSet()
          Get the character sets the consumer wants the remote portlet to use for encoding the markup.
 java.lang.String getConsumerAgent()
          Get the name of the consumer
 java.lang.String[] getMimeTypes()
          Get an array of mime types which are supported by the consumer.
 StateChange getPortletStateChange()
          Returns a flag which is used to indicate the producer wether or not the processing of portlets is allowed to modify the portlet state.
 java.lang.String[] getSupportedLocales()
          Get the locales which are supported by the consumer.
 java.lang.String[] getSupportedModes()
          Get the portlet modes the consumer is willing to manage.
 java.lang.String[] getSupportedWindowStates()
          Get the window states the consumer is willing to manage.
 java.lang.String getUserAuthentication()
          Get the method which is used by the consumer to authenticate its users.
 void setCharacterEncodingSet(java.lang.String[] charEncoding)
          Set the character set the consumer wants the remote portlet to use for encoding the markup.
 void setConsumerAgent(java.lang.String name)
          Set the name of the consumer
 void setMimeTypes(java.lang.String[] mimeTypes)
          Set the mime types the consumer supports The order in the array defines the order of preference of the consumer.
 void setPortletStateChange(StateChange portletStateChange)
          Set a flag which is used to indicate the producer wether or not the processing of portlets is allowed to modify the portlet state.
 void setSupportedLocales(java.lang.String[] locales)
          Set the locales which are supported by the consumer.
 void setSupportedModes(java.lang.String[] modes)
          Set the portlet modes which are supported by the consumer.
 void setSupportedWindowStates(java.lang.String[] states)
          Set the window states which are supported by the consumer.
 void setUserAuthentication(java.lang.String authMethod)
          Set the method of end user authentication used by the consumer..
 

Method Detail

getConsumerAgent

public java.lang.String getConsumerAgent()
Get the name of the consumer

Returns:
The name of the consumer

getUserAuthentication

public java.lang.String getUserAuthentication()
Get the method which is used by the consumer to authenticate its users.

Returns:
String indicating how end-users were authenticated by the consumer.

getSupportedLocales

public java.lang.String[] getSupportedLocales()
Get the locales which are supported by the consumer. (ISO-639 + "_" + ISO-3166)

Returns:
Array with string representations of the locales which are supported by the consumer

getSupportedModes

public java.lang.String[] getSupportedModes()
Get the portlet modes the consumer is willing to manage.

Returns:
Array with string representations of the portlet modes which are supported by the consumer

getSupportedWindowStates

public java.lang.String[] getSupportedWindowStates()
Get the window states the consumer is willing to manage.

Returns:
Array with string representations of the window states which are supported by the consumer

getPortletStateChange

public StateChange getPortletStateChange()
Returns a flag which is used to indicate the producer wether or not the processing of portlets is allowed to modify the portlet state.

Returns:
A flag

getCharacterEncodingSet

public java.lang.String[] getCharacterEncodingSet()
Get the character sets the consumer wants the remote portlet to use for encoding the markup. Valid character sets are defined here

Returns:
Array of string representations of the character encoding.

getMimeTypes

public java.lang.String[] getMimeTypes()
Get an array of mime types which are supported by the consumer. The order in the array defines the order of preference of the consumer.

Returns:
An array of mimes types the consumer supports.

setConsumerAgent

public void setConsumerAgent(java.lang.String name)
Set the name of the consumer

Parameters:
name - The new name of the consumer

setUserAuthentication

public void setUserAuthentication(java.lang.String authMethod)
Set the method of end user authentication used by the consumer..

Parameters:
authMethod - indicating how end-users are authenticated by the consumer.

setMimeTypes

public void setMimeTypes(java.lang.String[] mimeTypes)
Set the mime types the consumer supports The order in the array defines the order of preference of the consumer.

Parameters:
mimeTypes - An array of mimes types the consumer supports.

setSupportedLocales

public void setSupportedLocales(java.lang.String[] locales)
Set the locales which are supported by the consumer. Pattern: ISO-639 + "_" + ISO-3166

Parameters:
locales - Array of string representations of supported locales

setSupportedModes

public void setSupportedModes(java.lang.String[] modes)
Set the portlet modes which are supported by the consumer.

Parameters:
modes - Array of string representations of portlet modes

setSupportedWindowStates

public void setSupportedWindowStates(java.lang.String[] states)
Set the window states which are supported by the consumer.

Parameters:
states - Array of string representations of window states

setPortletStateChange

public void setPortletStateChange(StateChange portletStateChange)
Set a flag which is used to indicate the producer wether or not the processing of portlets is allowed to modify the portlet state.

Parameters:
portletStateChange - A flag with one of the following values: StateChange.OK, StateChange.Clone, StateChange.Fault

setCharacterEncodingSet

public void setCharacterEncodingSet(java.lang.String[] charEncoding)
Set the character set the consumer wants the remote portlet to use for encoding the markup. Valid character sets are defined here

Parameters:
charEncoding - Array of string representations of the character encoding.