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

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

Returns:
The name of the consumer

getUserAuthentication

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

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

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

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

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

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

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

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

Parameters:
name - The new name of the consumer

setUserAuthentication

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

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

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

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

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

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

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.