| java.lang.Object org.apache.wsrp4j.util.ParameterChecker
ParameterChecker | public class ParameterChecker (Code) | | This class validates the objects and their attributes used for the WSRP communication
requests. The object and attribute tree is scanned including the 2nd level. This means,
that the input object, it's attributes and ,if the attribute is itself an object, the
subsequent object and It's attributes are also checked. The checking is done only for
required (R) parameters in the WSRP specification. Optional (O) parameters are ignored.
If a parameter is specified as 'nillable' in the WSRP specification, the check is
performed if the value is 'not null'. On null value, no checking is done.
|
ParameterChecker | public ParameterChecker()(Code) | | Default Constructor
|
check | public void check(GetMarkup request) throws MissingParametersFault(Code) | | Check the GetMarkup. The following attributes are mandatory:
1) RegistrationContext, only if available
2) PortletContext
3) RuntimeContext
4) UserContext, only if available
5) MarkupParams
Parameters: request - getMarkup throws: MissingParametersFault - See Also: GetMarkup |
check | public void check(GetPortletProperties request) throws MissingParametersFault(Code) | | Parameter check for the SetPortletProperties object. The following attributes are mandatory:
1) RegistrationContext, only if available
2) PortletContext
3) UserContext, only if available
4) Names, only if available
Parameters: request - _getPortletProperties throws: MissingParametersFault - See Also: GetPortletPorperties |
check | public void check(ReleaseSessions request) throws MissingParametersFault(Code) | | Parameter check for the ReleaseSession object. The following attributes are mandatory:
1) RegistrationContext, only if available
2) String[] SessionHandles
Parameters: request - _releaseSession throws: MissingParametersFault - See Also: ReleaseSession |
check | public void check(PropertyList propertyList, boolean nillable) throws MissingParametersFault(Code) | | Check the PropertyList. The following attributes are mandatory:
1) Property[]
Parameters: propertyList - PropertyList Parameters: nillable - boolean true, if the PropertyList can be nillfalse, if the PropertyList is not nillable throws: MissingParametersFault - See Also: PropertyList |
check | public void check(RegistrationData registrationData, boolean nillable) throws MissingParametersFault(Code) | | Check the RegistrationData. The following attributes are mandatory:
1) ConsumerName
2) ConsumerAgent
Parameters: registrationData - RegistrationData Parameters: nillable - boolean true, if the RegistrationData can be nillfalse, if the RegistrationData is not nillable throws: MissingParametersFault - See Also: RegistrationData |
check | public void check(RegistrationContext registrationContext, boolean nillable) throws MissingParametersFault(Code) | | Check the RegistrationContext. The following attributes are mandatory:
1) RegistrationHandle
Parameters: registrationContext - RegistrationContext Parameters: nillable - boolean true, if the RegistrationContext can be nillfalse, if the RegistrationContext is not nillable throws: MissingParametersFault - See Also: RegistrationContext |
check | public void check(PortletContext portletContext, boolean nillable) throws MissingParametersFault(Code) | | Check the PortletContext. The following attributes are mandatory:
1) PortletHandle
Parameters: portletContext - PortletContext Parameters: nillable - boolean true, if the PortletContext can be nillfalse, if the PortletContext is not nillable throws: MissingParametersFault - See Also: PortletContext |
|
|