|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.wsrp4j.util.ParameterChecker
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.
| Field Summary | |
private Logger |
logger
|
| Constructor Summary | |
ParameterChecker()
|
|
| Method Summary | |
void |
check(oasis.names.tc.wsrp.v1.types.BlockingInteractionResponse response)
Parameter check for the BlockingInteractionResponse object. |
void |
check(oasis.names.tc.wsrp.v1.types.ClonePortlet request)
Parameter check for the ClonePortlet object. |
private void |
check(oasis.names.tc.wsrp.v1.types.CookieProtocol requiresInit,
boolean nillable)
Validates the CookieProtocol object |
private void |
check(oasis.names.tc.wsrp.v1.types.DestroyFailed[] destroyFailedArray,
boolean nillable)
Validates the DestroyFailed Array. |
void |
check(oasis.names.tc.wsrp.v1.types.DestroyPortlets request)
Parameter check for the DestroyEntites object. |
void |
check(oasis.names.tc.wsrp.v1.types.DestroyPortletsResponse response)
Validates the DestroyPortletsResponse object 1) DestroyFailed[], only if available |
void |
check(oasis.names.tc.wsrp.v1.types.GetMarkup request)
Check the GetMarkup. |
void |
check(oasis.names.tc.wsrp.v1.types.GetPortletDescription request)
Parameter check for the GetPortletDescription object. |
void |
check(oasis.names.tc.wsrp.v1.types.GetPortletProperties request)
Parameter check for the SetPortletProperties object. |
void |
check(oasis.names.tc.wsrp.v1.types.GetPortletPropertyDescription request)
Parameter check for the SetPortletProperties object. |
void |
check(oasis.names.tc.wsrp.v1.types.GetServiceDescription request)
Check the GetServiceDescritpion. |
void |
check(oasis.names.tc.wsrp.v1.types.InitCookie request)
Check the InitCookie. |
private void |
check(oasis.names.tc.wsrp.v1.types.InteractionParams interactionParams,
boolean nillable)
Check the InteractionParams. |
private void |
check(oasis.names.tc.wsrp.v1.types.MarkupContext context,
boolean nillable)
Parameter check for the MarkupContext object. |
private void |
check(oasis.names.tc.wsrp.v1.types.MarkupParams markupParams,
boolean nillable)
Check the MarkupParams. |
void |
check(oasis.names.tc.wsrp.v1.types.MarkupResponse response)
Parameter check for the MarkupResponse object. |
void |
check(oasis.names.tc.wsrp.v1.types.ModifyRegistration request)
Check the ModifyRegistration. |
void |
check(oasis.names.tc.wsrp.v1.types.PerformBlockingInteraction request)
Check the PerformBlockingInteraction. |
void |
check(oasis.names.tc.wsrp.v1.types.PortletContext portletContext,
boolean nillable)
Check the PortletContext. |
void |
check(oasis.names.tc.wsrp.v1.types.PortletDescription element)
Parameter check for the PortletDescription object. |
void |
check(oasis.names.tc.wsrp.v1.types.PortletDescriptionResponse response)
Validates the PortletDescriptionResponse object 1) PortletDescription 2) ResourceList, only if available |
void |
check(oasis.names.tc.wsrp.v1.types.PortletPropertyDescriptionResponse response)
Validates the PortletPropertyDescriptionResponse object 1) ResourceList |
void |
check(oasis.names.tc.wsrp.v1.types.PropertyList propertyList,
boolean nillable)
Check the PropertyList. |
void |
check(oasis.names.tc.wsrp.v1.types.RegistrationContext registrationContext,
boolean nillable)
Check the RegistrationContext. |
void |
check(oasis.names.tc.wsrp.v1.types.RegistrationData registrationData,
boolean nillable)
Check the RegistrationData. |
void |
check(oasis.names.tc.wsrp.v1.types.ReleaseSessions request)
Parameter check for the ReleaseSession object. |
private void |
check(oasis.names.tc.wsrp.v1.types.ResourceList resourceList,
boolean nillable)
Validates the ResourceList object for available resources. |
private void |
check(oasis.names.tc.wsrp.v1.types.RuntimeContext runtimeContext,
boolean nillable)
Check the RuntimeContext. |
void |
check(oasis.names.tc.wsrp.v1.types.ServiceDescription response)
Parameter check for the ServiceDescription object. |
private void |
check(oasis.names.tc.wsrp.v1.types.SessionContext context,
boolean nillable)
Parameter check for the SessionContext object. |
void |
check(oasis.names.tc.wsrp.v1.types.SetPortletProperties request)
Parameter check for the SetPortletProperties object. |
private void |
check(java.lang.String[] array,
boolean nillable)
Check a string array. |
void |
check(oasis.names.tc.wsrp.v1.types.Templates element)
Parameter check for the PortletDescription object. |
private void |
check(oasis.names.tc.wsrp.v1.types.UpdateResponse response)
Parameter check for the UpdateResponse object. |
private void |
check(oasis.names.tc.wsrp.v1.types.UserContext userContext,
boolean nillable)
Check the UserContext. |
private boolean |
isCheckEnabled()
|
private void |
throwMissingParametersFault(java.lang.String msg)
Creates and throws a MissingParametersFault exception |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private Logger logger
| Constructor Detail |
public ParameterChecker()
| Method Detail |
private boolean isCheckEnabled()
public void check(oasis.names.tc.wsrp.v1.types.GetServiceDescription request)
throws oasis.names.tc.wsrp.v1.types.MissingParametersFault
request - GetServiceDescription
oasis.names.tc.wsrp.v1.types.MissingParametersFaultGetServiceDescription
public void check(oasis.names.tc.wsrp.v1.types.ModifyRegistration request)
throws oasis.names.tc.wsrp.v1.types.MissingParametersFault
request - ModifyRegistration
oasis.names.tc.wsrp.v1.types.MissingParametersFaultModifyRegistration
public void check(oasis.names.tc.wsrp.v1.types.GetMarkup request)
throws oasis.names.tc.wsrp.v1.types.MissingParametersFault
request - getMarkup
oasis.names.tc.wsrp.v1.types.MissingParametersFaultGetMarkup
public void check(oasis.names.tc.wsrp.v1.types.PerformBlockingInteraction request)
throws oasis.names.tc.wsrp.v1.types.MissingParametersFault
request - PerformBlockingInteraction
oasis.names.tc.wsrp.v1.types.MissingParametersFaultPerformBlockingInteraction
public void check(oasis.names.tc.wsrp.v1.types.InitCookie request)
throws oasis.names.tc.wsrp.v1.types.MissingParametersFault
request - InitCookie
oasis.names.tc.wsrp.v1.types.MissingParametersFaultInitCookie
public void check(oasis.names.tc.wsrp.v1.types.GetPortletDescription request)
throws oasis.names.tc.wsrp.v1.types.MissingParametersFault
request - GetPortletDescription
oasis.names.tc.wsrp.v1.types.MissingParametersFaultGetPortletDescription
public void check(oasis.names.tc.wsrp.v1.types.ClonePortlet request)
throws oasis.names.tc.wsrp.v1.types.MissingParametersFault
request - ClonePortlet
oasis.names.tc.wsrp.v1.types.MissingParametersFaultClonePortlet
public void check(oasis.names.tc.wsrp.v1.types.DestroyPortlets request)
throws oasis.names.tc.wsrp.v1.types.MissingParametersFault
request - DestroyPortlets
oasis.names.tc.wsrp.v1.types.MissingParametersFaultDestroyPortlets
public void check(oasis.names.tc.wsrp.v1.types.SetPortletProperties request)
throws oasis.names.tc.wsrp.v1.types.MissingParametersFault
request - SetPortletProperties
oasis.names.tc.wsrp.v1.types.MissingParametersFaultSetPortletProperties
public void check(oasis.names.tc.wsrp.v1.types.GetPortletProperties request)
throws oasis.names.tc.wsrp.v1.types.MissingParametersFault
request - GetPortletProperties
oasis.names.tc.wsrp.v1.types.MissingParametersFaultGetPortletProperties
public void check(oasis.names.tc.wsrp.v1.types.GetPortletPropertyDescription request)
throws oasis.names.tc.wsrp.v1.types.MissingParametersFault
request - GetPortletPropertyDescription
oasis.names.tc.wsrp.v1.types.MissingParametersFaultGetPortletPropertyDescription
public void check(oasis.names.tc.wsrp.v1.types.ReleaseSessions request)
throws oasis.names.tc.wsrp.v1.types.MissingParametersFault
request - _releaseSession
oasis.names.tc.wsrp.v1.types.MissingParametersFaultReleaseSessions
public void check(oasis.names.tc.wsrp.v1.types.ServiceDescription response)
throws oasis.names.tc.wsrp.v1.types.MissingParametersFault
response - ServiceDescription
oasis.names.tc.wsrp.v1.types.MissingParametersFaultServiceDescription
public void check(oasis.names.tc.wsrp.v1.types.BlockingInteractionResponse response)
throws oasis.names.tc.wsrp.v1.types.MissingParametersFault
response - BlockingInteractionResponse
oasis.names.tc.wsrp.v1.types.MissingParametersFaultBlockingInteractionResponse
private void check(oasis.names.tc.wsrp.v1.types.UpdateResponse response)
throws oasis.names.tc.wsrp.v1.types.MissingParametersFault
response - UpdateResponse
oasis.names.tc.wsrp.v1.types.MissingParametersFaultUpdateResponse
public void check(oasis.names.tc.wsrp.v1.types.MarkupResponse response)
throws oasis.names.tc.wsrp.v1.types.MissingParametersFault
response - MarkupResponse
oasis.names.tc.wsrp.v1.types.MissingParametersFaultMarkupResponse
public void check(oasis.names.tc.wsrp.v1.types.PortletDescriptionResponse response)
throws oasis.names.tc.wsrp.v1.types.MissingParametersFault
response - PortletDescriptionResponse
oasis.names.tc.wsrp.v1.types.MissingParametersFaultPortletDescriptionResponse
public void check(oasis.names.tc.wsrp.v1.types.PortletPropertyDescriptionResponse response)
throws oasis.names.tc.wsrp.v1.types.MissingParametersFault
response - PortletPropertyDescriptionResponse
oasis.names.tc.wsrp.v1.types.MissingParametersFaultPortletPropertyDescriptionResponse
public void check(oasis.names.tc.wsrp.v1.types.DestroyPortletsResponse response)
throws oasis.names.tc.wsrp.v1.types.MissingParametersFault
response - DestroyPortletResponse
oasis.names.tc.wsrp.v1.types.MissingParametersFaultDestroyPortletsResponse
public void check(oasis.names.tc.wsrp.v1.types.PortletDescription element)
throws oasis.names.tc.wsrp.v1.types.MissingParametersFault
element - PortletDescription
oasis.names.tc.wsrp.v1.types.MissingParametersFaultPortletDescription
public void check(oasis.names.tc.wsrp.v1.types.Templates element)
throws oasis.names.tc.wsrp.v1.types.MissingParametersFault
element - Templates
oasis.names.tc.wsrp.v1.types.MissingParametersFaultPortletDescription
private void check(oasis.names.tc.wsrp.v1.types.SessionContext context,
boolean nillable)
throws oasis.names.tc.wsrp.v1.types.MissingParametersFault
context - SessionContextnillable - boolean true, if the SessionContext can be nill
false, if the SessionContext is not nillable
oasis.names.tc.wsrp.v1.types.MissingParametersFaultSessionContext
private void check(oasis.names.tc.wsrp.v1.types.MarkupContext context,
boolean nillable)
throws oasis.names.tc.wsrp.v1.types.MissingParametersFault
context - MarkupContextnillable - boolean true, if the MarkupContext can be nill
false, if the MarkupContext is not nillable
oasis.names.tc.wsrp.v1.types.MissingParametersFaultMarkupContext
public void check(oasis.names.tc.wsrp.v1.types.PropertyList propertyList,
boolean nillable)
throws oasis.names.tc.wsrp.v1.types.MissingParametersFault
propertyList - PropertyListnillable - boolean true, if the PropertyList can be nill
false, if the PropertyList is not nillable
oasis.names.tc.wsrp.v1.types.MissingParametersFaultPropertyList
public void check(oasis.names.tc.wsrp.v1.types.RegistrationData registrationData,
boolean nillable)
throws oasis.names.tc.wsrp.v1.types.MissingParametersFault
registrationData - RegistrationDatanillable - boolean true, if the RegistrationData can be nill
false, if the RegistrationData is not nillable
oasis.names.tc.wsrp.v1.types.MissingParametersFaultRegistrationData
private void check(java.lang.String[] array,
boolean nillable)
throws oasis.names.tc.wsrp.v1.types.MissingParametersFault
array - String[]nillable - boolean true, if the String[] can be nill
false, if the String[] is not nillable
oasis.names.tc.wsrp.v1.types.MissingParametersFaultString
private void check(oasis.names.tc.wsrp.v1.types.InteractionParams interactionParams,
boolean nillable)
throws oasis.names.tc.wsrp.v1.types.MissingParametersFault
interactionParams - InteractionParamsnillable - boolean true, if the InteractionParams can be nill
false, if the InteractionParams is not nillable
oasis.names.tc.wsrp.v1.types.MissingParametersFaultInteractionParams
public void check(oasis.names.tc.wsrp.v1.types.RegistrationContext registrationContext,
boolean nillable)
throws oasis.names.tc.wsrp.v1.types.MissingParametersFault
registrationContext - RegistrationContextnillable - boolean true, if the RegistrationContext can be nill
false, if the RegistrationContext is not nillable
oasis.names.tc.wsrp.v1.types.MissingParametersFaultRegistrationContext
public void check(oasis.names.tc.wsrp.v1.types.PortletContext portletContext,
boolean nillable)
throws oasis.names.tc.wsrp.v1.types.MissingParametersFault
portletContext - PortletContextnillable - boolean true, if the PortletContext can be nill
false, if the PortletContext is not nillable
oasis.names.tc.wsrp.v1.types.MissingParametersFaultPortletContext
private void check(oasis.names.tc.wsrp.v1.types.RuntimeContext runtimeContext,
boolean nillable)
throws oasis.names.tc.wsrp.v1.types.MissingParametersFault
runtimeContext - RuntimeContextnillable - boolean true, if the RuntimeContext can be nill
false, if the RuntimeContext is not nillable
oasis.names.tc.wsrp.v1.types.MissingParametersFaultRuntimeContext
private void check(oasis.names.tc.wsrp.v1.types.DestroyFailed[] destroyFailedArray,
boolean nillable)
throws oasis.names.tc.wsrp.v1.types.MissingParametersFault
destroyFailedArray - DestroyFailed[]nillable - boolean true, if the DestroyFailed[] can be nill
false, if the DestroyFailed[] is not nillable
oasis.names.tc.wsrp.v1.types.MissingParametersFault
private void check(oasis.names.tc.wsrp.v1.types.UserContext userContext,
boolean nillable)
throws oasis.names.tc.wsrp.v1.types.MissingParametersFault
userContext - UserContextnillable - boolean true, if the UserContext can be nill
false, if the UserContext is not nillable
oasis.names.tc.wsrp.v1.types.MissingParametersFaultUserContext
private void check(oasis.names.tc.wsrp.v1.types.ResourceList resourceList,
boolean nillable)
throws oasis.names.tc.wsrp.v1.types.MissingParametersFault
resourceList - nillable - true if null is allowed
oasis.names.tc.wsrp.v1.types.MissingParametersFault
private void check(oasis.names.tc.wsrp.v1.types.CookieProtocol requiresInit,
boolean nillable)
throws oasis.names.tc.wsrp.v1.types.MissingParametersFault
requiresInit - nillable - true if null is allowed
oasis.names.tc.wsrp.v1.types.MissingParametersFault
private void check(oasis.names.tc.wsrp.v1.types.MarkupParams markupParams,
boolean nillable)
throws oasis.names.tc.wsrp.v1.types.MissingParametersFault
markupParams - MarkupParamsnillable - boolean true, if the MarkupParams can be nill
false, if the MarkupParams is not nillable
oasis.names.tc.wsrp.v1.types.MissingParametersFaultMarkupParams
private void throwMissingParametersFault(java.lang.String msg)
throws oasis.names.tc.wsrp.v1.types.MissingParametersFault
msg - String error message
oasis.names.tc.wsrp.v1.types.MissingParametersFaultMissingParametersFault
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||