@Target(value={PARAMETER,FIELD})
@Retention(value=RUNTIME)
@Documented
public @interface RequestHeader
Title: RequestHeader.java
Description:
bboss workgroup
Copyright (c) 2008
| 限定符和类型 | 可选元素和说明 |
|---|---|
java.lang.String |
dateformat |
java.lang.String |
defaultvalue
The default value to use as a fallback.
|
java.lang.String |
editor |
java.lang.String |
locale |
java.lang.String |
name
The name of the request header to bind to.
|
boolean |
required
Whether the header is required.
|
public abstract java.lang.String name
public abstract boolean required
Default is Alternatively, provide a true, leading to an exception thrown in case
of the header missing in the request. Switch this to false
if you prefer a null in case of the header missing.
defaultValue,
which implicitely sets this flag to false.
public abstract java.lang.String defaultvalue
required() to false.