| java.lang.Object org.xins.server.FunctionResult org.xins.server.InvalidMessageResult
All known Subclasses: org.xins.server.InvalidRequestResult, org.xins.server.InvalidResponseResult,
InvalidMessageResult | class InvalidMessageResult extends FunctionResult (Code) | | Result code that indicates that a request or a response parameter is either
missing or invalid.
version: $Revision: 1.5 $ $Date: 2007/09/18 08:45:04 $ author: Anthony Goubard since: XINS 2.0 |
Method Summary | |
public void | addAttributeCombo(String type, List attributes, String elementName) Adds an invalid combination of attributes. | public void | addInvalidValueForType(String parameter, String type) Adds an invalid value for a specified type. | public void | addInvalidValueForType(String parameter, String value, String type) Adds an invalid value for a specified type. | public void | addInvalidValueForType(String parameter, String value, String type, String element) Adds an invalid value for a specified type. | public void | addMissingParameter(String parameter) Adds to the response that a paramater that is missing. | public void | addMissingParameter(String parameter, String element) Adds to the response a parameter that is missing in an element. | public void | addParamCombo(String type, List parameters) Adds an invalid combination of parameters. |
InvalidMessageResult | InvalidMessageResult(String errorCode)(Code) | | Constructs a new InvalidMessageResult object.
Parameters: errorCode - the error code to return to the client, never null . |
addAttributeCombo | public void addAttributeCombo(String type, List attributes, String elementName)(Code) | | Adds an invalid combination of attributes.
Parameters: type - the type of the combination. Parameters: attributes - list of the attributes in the combination passed as a list ofString objects. Parameters: elementName - the name of the element to which these attributes belong. since: XINS 1.4.0 |
addInvalidValueForType | public void addInvalidValueForType(String parameter, String value, String type)(Code) | | Adds an invalid value for a specified type.
Parameters: parameter - the parameter passed by the user. Parameters: value - the value of the parameter passed by the user. Parameters: type - the type which this parameter should be compliant with. |
addInvalidValueForType | public void addInvalidValueForType(String parameter, String value, String type, String element)(Code) | | Adds an invalid value for a specified type.
Parameters: parameter - the parameter passed by the user. Parameters: value - the value of the parameter passed by the user. Parameters: type - the type which this parameter should be compliant with. Parameters: element - the element in which the parameter is missing. |
addMissingParameter | public void addMissingParameter(String parameter)(Code) | | Adds to the response that a paramater that is missing.
Parameters: parameter - the missing parameter. |
addMissingParameter | public void addMissingParameter(String parameter, String element)(Code) | | Adds to the response a parameter that is missing in an element.
Parameters: parameter - the missing parameter. Parameters: element - the element in which the parameter is missing. |
addParamCombo | public void addParamCombo(String type, List parameters)(Code) | | Adds an invalid combination of parameters.
Parameters: type - the type of the combination. Parameters: parameters - list of the parameters in the combination passed as a list ofString objects. |
|
|