|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.wsrp4j.consumer.driver.PortletDriverImpl
This class implements a portlet driver
| Field Summary | |
private ConsumerEnvironment |
consumerEnv
|
protected oasis.names.tc.wsrp.v1.types.PortletDescription |
desc
|
private oasis.names.tc.wsrp.v1.types.CookieProtocol |
initCookie
|
private static Logger |
logger
|
private oasis.names.tc.wsrp.v1.intf.WSRP_v1_Markup_PortType |
markupPort
|
private ParameterChecker |
parameterChecker
|
private WSRPPortlet |
portlet
|
private oasis.names.tc.wsrp.v1.intf.WSRP_v1_PortletManagement_PortType |
portletPort
|
private Producer |
producer
|
| Constructor Summary | |
PortletDriverImpl(WSRPPortlet portlet,
ConsumerEnvironment consumerEnv)
|
|
| Method Summary | |
private void |
checkInitCookie(java.lang.String userID)
|
oasis.names.tc.wsrp.v1.types.PortletContext |
clonePortlet(java.lang.String userID)
Clone the portlet |
protected boolean |
contains(java.lang.String[] array,
java.lang.String object)
Helper method for searching a string in a string array. |
oasis.names.tc.wsrp.v1.types.DestroyPortletsResponse |
destroyPortlets(java.lang.String[] portletHandles,
java.lang.String userID)
Destroy the producer portlets specified in the entiyHandles array. |
private oasis.names.tc.wsrp.v1.types.InteractionParams |
getInteractionParams(InteractionRequest actionRequest)
|
oasis.names.tc.wsrp.v1.types.MarkupResponse |
getMarkup(MarkupRequest markupRequest,
java.lang.String userID)
This method is used to retrieve the markup generated by the portlet instance. |
private oasis.names.tc.wsrp.v1.types.MarkupParams |
getMarkupParams(WSRPBaseRequest request)
|
WSRPPortlet |
getPortlet()
Get the portlet this driver is bind to. |
oasis.names.tc.wsrp.v1.types.PortletDescriptionResponse |
getPortletDescription(java.lang.String userID,
java.lang.String[] desiredLocales)
Fetches information about the portlet from the producer. |
oasis.names.tc.wsrp.v1.types.PropertyList |
getPortletProperties(java.lang.String[] names,
java.lang.String userID)
Get the current values of the properties with the given names. |
oasis.names.tc.wsrp.v1.types.PortletPropertyDescriptionResponse |
getPortletPropertyDescription(java.lang.String userID)
Fetches all published properties of an remote portlet. |
protected oasis.names.tc.wsrp.v1.types.RuntimeContext |
getRuntimeContext(WSRPBaseRequest request)
Create the runtime context for the current request. |
private oasis.names.tc.wsrp.v1.types.UserContext |
getUserContext(java.lang.String userID)
|
protected java.lang.String[] |
getValidValues(java.lang.String[] supported,
java.lang.String[] allowed)
Calculate the valid values for modes and window states. |
void |
initCookie()
Actual WSRP initCookie() call |
oasis.names.tc.wsrp.v1.types.BlockingInteractionResponse |
performBlockingInteraction(InteractionRequest actionRequest,
java.lang.String userID)
This method is used to perform a blocking interaction on the portlet instance. |
oasis.names.tc.wsrp.v1.types.ReturnAny |
releaseSessions(java.lang.String[] sessionIDs,
java.lang.String userID)
Inform the producer that the sessions specified in the sessionIDs array will no longer be used by the consumer and can therefor be released. |
private void |
resetInitCookie(java.lang.String userID)
|
oasis.names.tc.wsrp.v1.types.PortletContext |
setPortletProperties(oasis.names.tc.wsrp.v1.types.PropertyList properties,
java.lang.String userID)
Set the portlet properties specified in the property list |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private WSRPPortlet portlet
private oasis.names.tc.wsrp.v1.intf.WSRP_v1_Markup_PortType markupPort
private oasis.names.tc.wsrp.v1.intf.WSRP_v1_PortletManagement_PortType portletPort
private ConsumerEnvironment consumerEnv
private Producer producer
private ParameterChecker parameterChecker
private oasis.names.tc.wsrp.v1.types.CookieProtocol initCookie
protected oasis.names.tc.wsrp.v1.types.PortletDescription desc
private static final Logger logger
| Constructor Detail |
public PortletDriverImpl(WSRPPortlet portlet,
ConsumerEnvironment consumerEnv)
throws WSRPException
| Method Detail |
public WSRPPortlet getPortlet()
getPortlet in interface PortletDriver
private void resetInitCookie(java.lang.String userID)
throws WSRPException
WSRPException
private void checkInitCookie(java.lang.String userID)
throws WSRPException
WSRPExceptionprivate oasis.names.tc.wsrp.v1.types.MarkupParams getMarkupParams(WSRPBaseRequest request)
protected java.lang.String[] getValidValues(java.lang.String[] supported,
java.lang.String[] allowed)
supported - The values supported by the consumer.allowed - The values allowed by the producer.
protected boolean contains(java.lang.String[] array,
java.lang.String object)
protected oasis.names.tc.wsrp.v1.types.RuntimeContext getRuntimeContext(WSRPBaseRequest request)
private oasis.names.tc.wsrp.v1.types.UserContext getUserContext(java.lang.String userID)
private oasis.names.tc.wsrp.v1.types.InteractionParams getInteractionParams(InteractionRequest actionRequest)
public oasis.names.tc.wsrp.v1.types.MarkupResponse getMarkup(MarkupRequest markupRequest,
java.lang.String userID)
throws WSRPException
getMarkup in interface PortletDrivermarkupRequest - userID -
WSRPException
public oasis.names.tc.wsrp.v1.types.BlockingInteractionResponse performBlockingInteraction(InteractionRequest actionRequest,
java.lang.String userID)
throws WSRPException
performBlockingInteraction in interface PortletDriveractionRequest -
WSRPException
public oasis.names.tc.wsrp.v1.types.PortletContext clonePortlet(java.lang.String userID)
throws WSRPException
clonePortlet in interface PortletDriverWSRPException
public oasis.names.tc.wsrp.v1.types.DestroyPortletsResponse destroyPortlets(java.lang.String[] portletHandles,
java.lang.String userID)
throws WSRPException
destroyPortlets in interface PortletDriverWSRPException
public oasis.names.tc.wsrp.v1.types.ReturnAny releaseSessions(java.lang.String[] sessionIDs,
java.lang.String userID)
throws WSRPException
releaseSessions in interface PortletDriverWSRPException
public void initCookie()
throws WSRPException
initCookie in interface PortletDriverWSRPException
public oasis.names.tc.wsrp.v1.types.PortletDescriptionResponse getPortletDescription(java.lang.String userID,
java.lang.String[] desiredLocales)
throws WSRPException
getPortletDescription in interface PortletDriveruserID - is used to get the user context of the user from the user registrydesiredLocales - Array of locales the description should be provided
WSRPException
public oasis.names.tc.wsrp.v1.types.PortletPropertyDescriptionResponse getPortletPropertyDescription(java.lang.String userID)
throws WSRPException
getPortletPropertyDescription in interface PortletDriveruserID - The ID of the user this request is done for
WSRPException
public oasis.names.tc.wsrp.v1.types.PropertyList getPortletProperties(java.lang.String[] names,
java.lang.String userID)
throws WSRPException
getPortletProperties in interface PortletDrivernames - The names of the propertiesuserID - The ID of the user is used to get the user context
WSRPException
public oasis.names.tc.wsrp.v1.types.PortletContext setPortletProperties(oasis.names.tc.wsrp.v1.types.PropertyList properties,
java.lang.String userID)
throws WSRPException
setPortletProperties in interface PortletDriverproperties - List of properties to be set.userID - The ID of the user is used to get the user context
WSRPException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||