Class IllegalRequestCharsException

java.lang.Object
  extended byGomdException
      extended byIllegalRequestCharsException

public class IllegalRequestCharsException
extends GomdException

Indicates you somehow have strange characters in your request

See Also:
Serialized Form

Constructor Summary
IllegalRequestCharsException()
          Constructor
 
Method Summary
 char[] getLegalChars()
          Show the user wich chars are ok to use
 boolean validateChar(char c)
          Check if the specified char is ok to use
 int[] validateString(java.lang.String s)
          Check if the specified String is ok to use
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IllegalRequestCharsException

public IllegalRequestCharsException()
Constructor

Method Detail

getLegalChars

public char[] getLegalChars()
Show the user wich chars are ok to use


validateChar

public boolean validateChar(char c)
Check if the specified char is ok to use

Parameters:
c - The character to check
Returns:
boolean indicating wether the char checked if valid(true) or unvalid(false)

validateString

public int[] validateString(java.lang.String s)
Check if the specified String is ok to use

Parameters:
s - The String to validate
Returns:
int[] with the indexes wich are not ok to use. Returns -1 when all is ok