@Documented @Target(value=PARAMETER) @Retention(value=RUNTIME) @Inherited public @interface Header
@RestMethod
annotated method to identify it as a HTTP
request header converted to a POJO.
This is functionally equivalent to the following code...
Modifier and Type | Optional Element and Description |
---|---|
String |
def
The default value for this header if it's not present in the request.
|
String |
name
HTTP header name.
|
Class<? extends HttpPartParser> |
parser
Specifies the
HttpPartParser class used for parsing values from strings. |
String |
value
A synonym for
name() . |
public abstract Class<? extends HttpPartParser> parser
HttpPartParser
class used for parsing values from strings.
The default value for this parser is inherited from the servlet/method which defaults to UonPartParser
.
You can use SimplePartParser
to parse POJOs that are directly convertible from Strings
.
Copyright © 2018 Apache. All rights reserved.