@Documented @Target(value={PARAMETER,FIELD,METHOD}) @Retention(value=RUNTIME) @Inherited public @interface HeaderIfNE
@Header
except skips values if they're null/blank.
Modifier and Type | Optional Element and Description |
---|---|
String |
name
The HTTP header name.
|
Class<? extends HttpPartSerializer> |
serializer
Specifies the
HttpPartSerializer class used for serializing values to strings. |
String |
value
A synonym for
name() . |
public abstract String name
Header.name()
public abstract String value
name()
.Header.value()
public abstract Class<? extends HttpPartSerializer> serializer
HttpPartSerializer
class used for serializing values to strings.
The default value defaults to the using the part serializer defined on the @RequestBean
annotation,
then on the client which by default is UrlEncodingSerializer
.
This annotation is provided to allow values to be custom serialized.
Copyright © 2018 Apache. All rights reserved.