java2gomd
Class IllegalRequestCharsException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava2gomd.GomdException
              extended byjava2gomd.IllegalRequestCharsException
All Implemented Interfaces:
java.io.Serializable

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.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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