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 WSRPPortlet Management Interface. Whereas
the Registration- and Portlet Management Interface are optional.
See Also:Producer author: Stephan Laertz author: Richard Jacob
Constructor Summary
public
ProducerImpl() Default Constructor should not be used directly.
getPortletDescription(String portletHandle) Get the portlet description of the portlet with the given handle from the
service description or null if the producer doesn't offer an portlet with this handle
in it's service description.
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 from the
service description or null if the producer doesn't offer an portlet with this handle
in it's service description.
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
Initialize the service description interface of the producer.
Parameters: serviceDescriptionURL - The URL of the producers service description interface
isPortletManagementInferfaceSupported
public boolean isPortletManagementInferfaceSupported()(Code)
isRegistrationInterfaceSupported
public boolean isRegistrationInterfaceSupported()(Code)
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 - URL of the registration interface.
Set the consumer environment this producer is used.
Parameters: consumerEnvironment - The consumer environment of the consumer usingthe producer object.
setServiceDescriptionInterfaceEndpoint
public void setServiceDescriptionInterfaceEndpoint(String url)(Code)
Set the URL of the producers service description interface.
Parameters: url - URL of the service description interface.
Methods inherited from org.apache.wsrp4j.util.StateChangedServiceImpl