org.apache.cocoon.portal.wsrp.consumer
Class ConsumerEnvironmentImpl

java.lang.Object
  extended byorg.apache.wsrp4j.consumer.driver.GenericConsumerEnvironment
      extended byorg.apache.cocoon.portal.wsrp.consumer.ConsumerEnvironmentImpl
All Implemented Interfaces:
org.apache.wsrp4j.consumer.Consumer, org.apache.wsrp4j.consumer.ConsumerCapabilities, org.apache.wsrp4j.consumer.ConsumerEnvironment

public class ConsumerEnvironmentImpl
extends org.apache.wsrp4j.consumer.driver.GenericConsumerEnvironment

Implements the consumer environment interface.

Version:
$Id: ConsumerEnvironmentImpl.java 322475 2005-10-16 14:26:44Z cziegeler $

Field Summary
protected  WSRPAdapter adapter
          The wsrp adapter.
protected  org.apache.wsrp4j.consumer.URLGenerator urlGenerator
          The generator used to rewrite the urls.
 
Constructor Summary
ConsumerEnvironmentImpl()
           
 
Method Summary
 String[] getSupportedLocales()
           
 org.apache.wsrp4j.consumer.URLGenerator getURLGenerator()
           
 String getUserAuthentication()
           
 void init(PortalService service, WSRPAdapter adapter)
          Initialize the consumer
 
Methods inherited from class org.apache.wsrp4j.consumer.driver.GenericConsumerEnvironment
getCharacterEncodingSet, getConsumerAgent, getMimeTypes, getPortletDriverRegistry, getPortletRegistry, getPortletStateChange, getProducerRegistry, getSessionHandler, getSupportedModes, getSupportedWindowStates, getTemplateComposer, getURLRewriter, getUserRegistry, setCharacterEncodingSet, setConsumerAgent, setMimeTypes, setPortletDriverRegistry, setPortletRegistry, setPortletStateChange, setProducerRegistry, setSessionHandler, setSupportedLocales, setSupportedModes, setSupportedWindowStates, setTemplateComposer, setURLRewriter, setUserAuthentication, setUserRegistry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

urlGenerator

protected org.apache.wsrp4j.consumer.URLGenerator urlGenerator
The generator used to rewrite the urls.


adapter

protected WSRPAdapter adapter
The wsrp adapter.

Constructor Detail

ConsumerEnvironmentImpl

public ConsumerEnvironmentImpl()
Method Detail

init

public void init(PortalService service,
                 WSRPAdapter adapter)
          throws Exception
Initialize the consumer

Parameters:
service -
adapter -
Throws:
Exception

getURLGenerator

public org.apache.wsrp4j.consumer.URLGenerator getURLGenerator()
Returns:
URLGenerator the used url generator.

getSupportedLocales

public String[] getSupportedLocales()
See Also:
GenericConsumerEnvironment.getSupportedLocales()

getUserAuthentication

public String getUserAuthentication()
See Also:
ConsumerCapabilities.getUserAuthentication()


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.