|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vladnput.VladConfig
public class VladConfig
The main class for interfacing with the VladNput framework. Obtain an instance using VladConfig.parse(file) or VladConfig.parseResource(resourceName) and then use vladConfig.validate(request, null) to validate HTTP requests. This class is immutable and can be used safely from multiple threads without synchronization. References to it may also be published without synchronization on 1.5 JVMs and above.
Field Summary | |
---|---|
static java.lang.String |
SENSITIVE_VALUE
The value that is put into VladError objects instead of the real value for parameters and types that are sensitive, e.g. |
Method Summary | |
---|---|
static VladConfig |
parse(java.io.File file)
Parse a Vlad configuration from file. |
static VladConfig |
parseResource(java.lang.String resourceName)
Parse a Vlad configuration from resourceName. |
java.lang.String |
toString()
|
VladErrors |
validate(javax.servlet.http.HttpServletRequest request,
RequestCanonicalizer canonicalizer)
Validates the request against this Vlad configuration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SENSITIVE_VALUE
Method Detail |
---|
public static VladConfig parseResource(java.lang.String resourceName) throws java.io.IOException, ParseException
resourceName
- Vlad configuration resource
java.io.IOException
- If there is a problem reading file
ParseException
- If there is a problem parsing filepublic static VladConfig parse(java.io.File file) throws java.io.IOException, ParseException
file
- Vlad configuration file
java.io.IOException
- If there is a problem reading file
ParseException
- If there is a problem parsing filepublic VladErrors validate(javax.servlet.http.HttpServletRequest request, RequestCanonicalizer canonicalizer)
request
- The request to validatecanonicalizer
- Canonicalizer for the request path and parameters. May be null.
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |