|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wsrp4j.producer.driver.WSRPEngine
Implements the WSRP-interfaces:
All methods are implemented by calling the corresponding sub-components (Producer- and Provider-side components). Additionally each method implementation performs high level checks (e.g. a parameter validation to ensure that all required input parameters are available) and maps internal exceptions to exceptions defined vy WSRP.
Involves additional servlet related objects -> no mapping of the interfaces possible
Method Summary | |
PortletContext |
clonePortlet(ClonePortlet request)
Calls the PortletPool to clone a portlet. |
ReturnAny |
deregister(RegistrationContext request)
Deregisters a certain consumer identified by a registration handle within the ConsumerRegistry. |
DestroyPortletsResponse |
destroyPortlets(DestroyPortlets request)
Removes all portlets corresponding to the provided portlet handles from the PortletPool. |
static WSRPEngine |
getInstance()
Internal method. |
MarkupResponse |
getMarkup(GetMarkup request)
Requests the markup for rendering the current state of a portlet by calling the PortletInvoker. |
PortletDescriptionResponse |
getPortletDescription(GetPortletDescription request)
Fetches a PortletDescription from the DescriptionHandler. |
PropertyList |
getPortletProperties(GetPortletProperties request)
Fetches the current property values of a portlet and returns them. |
PortletPropertyDescriptionResponse |
getPortletPropertyDescription(GetPortletPropertyDescription request)
Returns a model description containing the property descriptions of all properties of a portlet. |
ServiceDescription |
getServiceDescription(GetServiceDescription request)
Allows a Producer to provide information about its capabilities. |
ReturnAny |
initCookie(InitCookie request)
Creates a new HTTP session and initializes it |
RegistrationState |
modifyRegistration(ModifyRegistration request)
Modifies the registration of a certain consumer. |
BlockingInteractionResponse |
performBlockingInteraction(PerformBlockingInteraction request)
Invokes a blocking interaction with the adressed portlet by calling the PortletInvoker |
RegistrationContext |
register(RegistrationData request)
Calls the ConsumerRegistry to register a certain consumer. |
ReturnAny |
releaseSessions(ReleaseSessions request)
Destroys the sessions adressed by the delivered sessionIDs. |
PortletContext |
setPortletProperties(SetPortletProperties request)
Sets the properties of a portlet. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static WSRPEngine getInstance() throws java.rmi.RemoteException
java.rmi.RemoteException
public ServiceDescription getServiceDescription(GetServiceDescription request) throws java.rmi.RemoteException
Allows a Producer to provide information about its capabilities. Producers may choose to restrict the information returned in ServiceDescription based on the supplied RegistrationContext.
Checks registration (if required) by querying the ConsumerRegistry and calls the DescriptionHandler to get the service description.
getServiceDescription
in interface WSRP_v1_ServiceDescription_PortType
request
- a generated wrapper containing all input arguments for this method
java.rmi.RemoteException
public RegistrationContext register(RegistrationData request) throws java.rmi.RemoteException
register
in interface WSRP_v1_Registration_PortType
request
- a generated wrapper containing all input arguments for this method
java.rmi.RemoteException
public ReturnAny deregister(RegistrationContext request) throws java.rmi.RemoteException
deregister
in interface WSRP_v1_Registration_PortType
request
- a generated wrapper containing all input arguments for this method
java.rmi.RemoteException
InvalidRegistration
- The given registrationhandle is invalid / not yet registeredpublic RegistrationState modifyRegistration(ModifyRegistration request) throws java.rmi.RemoteException
modifyRegistration
in interface WSRP_v1_Registration_PortType
request
- a generated wrapper containing all input arguments for this method
java.rmi.RemoteException
public MarkupResponse getMarkup(GetMarkup request) throws java.rmi.RemoteException
Requests the markup for rendering the current state of a portlet by calling the PortletInvoker.
Throws InvalidHandleFault if there is no portlet in the PortletPool that corresponds to the provided portlet handle. Throws InvalidRegistration if there is no registration with the given registration handle available within the ConsumerRegistry (case registration is required).
Fetches the portlet description from the DescriptionHandler to figure out whether the portlet supports template processing or not. If so, it checks whether templates are provided or not.
getMarkup
in interface WSRP_v1_Markup_PortType
request
- a generated wrapper containing all input arguments for this method
java.rmi.RemoteException
public BlockingInteractionResponse performBlockingInteraction(PerformBlockingInteraction request) throws java.rmi.RemoteException
Invokes a blocking interaction with the adressed portlet by calling the PortletInvoker
Throws InvalidHandleFault if there is no portlet in the PortletPool that corresponds to the provided portlet handle. Throws InvalidRegistration if there is no registration with the given registration handle available within the ConsumerRegistry (case registration is required).
performBlockingInteraction
in interface WSRP_v1_Markup_PortType
request
- a generated wrapper containing all input arguments for this method
java.rmi.RemoteException
public ReturnAny initCookie(InitCookie request) throws java.rmi.RemoteException
Throws InvalidRegistration if there is no registration with the given registration handle available within the ConsumerRegistry (if registration is required).
initCookie
in interface WSRP_v1_Markup_PortType
request
- a generated wrapper containing all input arguments for this method
java.rmi.RemoteException
MissingParameterFault
InvalidRegistration
public ReturnAny releaseSessions(ReleaseSessions request) throws java.rmi.RemoteException
Destroys the sessions adressed by the delivered sessionIDs. Returns null by default.
Throws InvalidRegistration if there is no registration with the given registration handle available within the ConsumerRegistry (case registration is required).
releaseSessions
in interface WSRP_v1_Markup_PortType
request
- a generated wrapper containing all input arguments for this method
java.rmi.RemoteException
public PortletDescriptionResponse getPortletDescription(GetPortletDescription request) throws java.rmi.RemoteException
Fetches a PortletDescription from the DescriptionHandler.
Throws InvalidHandleFault if there is no portlet in the PortletPool that corresponds to the provided portlet handle. Throws InvalidRegistration if there is no registration with the given registration handle available within the ConsumerRegistry (case registration is required).
getPortletDescription
in interface WSRP_v1_PortletManagement_PortType
request
- a generated wrapper containing all input arguments for this method
java.rmi.RemoteException
public PortletContext clonePortlet(ClonePortlet request) throws java.rmi.RemoteException
Calls the PortletPool to clone a portlet.
Throws InvalidHandleFault if there is no portlet to be cloned in the PortletPool that corresponds to the provided portlet handle. Throws InvalidRegistration if there is no registration with the given registration handle available within the ConsumerRegistry (case registration is required).
clonePortlet
in interface WSRP_v1_PortletManagement_PortType
request
- a generated wrapper containing all input arguments for this method
java.rmi.RemoteException
public DestroyPortletsResponse destroyPortlets(DestroyPortlets request) throws java.rmi.RemoteException
Removes all portlets corresponding to the provided portlet handles from the PortletPool. All portlet handles refering to portlets that cannot be destroyed (e.g. portlet handles from Producer Offered Portlets) will be returned within the DestroyPortletResponse as DestroyFailed-objects.
Throws InvalidRegistration if there is no registration with the given registration handle available within the ConsumerRegistry (case registration is required).
destroyPortlets
in interface WSRP_v1_PortletManagement_PortType
request
- a generated wrapper containing all input arguments for this method
java.rmi.RemoteException
public PortletContext setPortletProperties(SetPortletProperties request) throws java.rmi.RemoteException
Sets the properties of a portlet.
Throws InvalidHandleFault if there is no portlet in the PortletPool that corresponds to the provided portlet handle. Throws InvalidRegistration if there is no registration with the given registration handle available within the ConsumerRegistry (case registration is required).
setPortletProperties
in interface WSRP_v1_PortletManagement_PortType
request
- a generated wrapper containing all input arguments for this method
java.rmi.RemoteException
public PropertyList getPortletProperties(GetPortletProperties request) throws java.rmi.RemoteException
Fetches the current property values of a portlet and returns them.
Throws InvalidHandleFault if there is no portlet in the PortletPool that corresponds to the provided portlet handle. Throws InvalidRegistration if there is no registration with the given registration handle available within the ConsumerRegistry (case registration is required).
getPortletProperties
in interface WSRP_v1_PortletManagement_PortType
request
- a generated wrapper containing all input arguments for this method
java.rmi.RemoteException
public PortletPropertyDescriptionResponse getPortletPropertyDescription(GetPortletPropertyDescription request) throws java.rmi.RemoteException
Returns a model description containing the property descriptions of all properties of a portlet.
Throws InvalidHandleFault if there is no portlet in the PortletPool that corresponds to the provided portlet handle. Throws InvalidRegistration if there is no registration with the given registration handle available within the ConsumerRegistry (case registration is required).
getPortletPropertyDescription
in interface WSRP_v1_PortletManagement_PortType
request
- a generated wrapper containing all input arguments for this method
java.rmi.RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |