A consumer representation of a WSRP-producer providing WSRP-portlets.
Generally a producer can expose up to four WSRP-Interfaces. These interfaces are
Markup-, Service Description-,Registration- and Portlet Management Interface. Whereas
the Registration- and Portlet Management Interface are optional.
author: Stephan Laertz
getPortletDescription(String portletHandle) Get the portlet description of the portlet with the given handle or
null if the producer doesn't know an portlet with this handle.
getRegistrationContext() Get the current registration context of the consumer registered at this producer or null
if no registration is required or happend so far.
Add an portlet description to the producer. This portlet description is
accessable through the portlet handle in the portlet description. If the
producer has already an portlet description with this portlet handle than
the old description will be overwritten.
Parameters: portletDescription - New portlet description
Get the portlet description of the portlet with the given handle or
null if the producer doesn't know an portlet with this handle.
Parameters: portletHandle - The portlet handle of the portlet The portlet description of the portlet with the given handle
Get the current registration context of the consumer registered at this producer or null
if no registration is required or happend so far.
The current registration context of the consumer at this producer or null.
Get the service description of the producer
Parameters: newRequest - If set to true a new request is send to the producer otherwise a cached service descriptionis used if available Service description of the producer
Can be used to modify the relationship between consumer and producer.
Note: A additional call of setRegistrationContext() is not neccesary
Parameters: registrationData - The new registration data New registration context
Method establishes a relationship between consumer and producer.
Note: A additional call of setRegistrationContext() is not neccesary
Parameters: registrationData - Data which is used to register the consumer The registration context received by the producer
setDescription
public void setDescription(String description)(Code)
Set a description of the producer.
Parameters: description - Some descriptive information about the producer
Set the registration the consumer uses the register at this producer.
Parameters: regData - The registration data which is used to register at this producer
setRegistrationInterfaceEndpoint
public void setRegistrationInterfaceEndpoint(String url)(Code)
Set the URL of the producers registration interface.
Parameters: url - of the registration interface.
setServiceDescriptionInterfaceEndpoint
public void setServiceDescriptionInterfaceEndpoint(String url)(Code)
Set the URL of the producers service description interface.
Parameters: url - of the service description interface.