Package org.apache.juneau.rest.arg
Class HeaderArg
java.lang.Object
org.apache.juneau.rest.arg.HeaderArg
- All Implemented Interfaces:
- RestOpArg
Resolves method parameters and parameter types annotated with 
Header on RestOp-annotated Java methods.
 This includes any of the following predefined request header types:
- Accept
- AcceptCharset
- AcceptEncoding
- AcceptLanguage
- AcceptRanges
- Authorization
- CacheControl
- ClientVersion
- Connection
- ContentDisposition
- ContentEncoding
- ContentLength
- ContentType
- Date
- Debug
- Expect
- Forwarded
- From
- Host
- IfMatch
- IfModifiedSince
- IfNoneMatch
- IfRange
- IfUnmodifiedSince
- MaxForwards
- NoTrace
- Origin
- Pragma
- ProxyAuthorization
- Range
- Referer
- TE
- Thrown
- Upgrade
- UserAgent
- Warning
The parameter value is resolved using:
   getRequest()
      .getHeaders();
 
 schema is derived from the Header annotation.
 
 If the Schema.collectionFormat() value is HttpPartCollectionFormat.MULTI, then the data type can be a Collection or array.
 
See Also:
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedHeaderArg(ParamInfo pi, AnnotationWorkList annotations) Constructor.
- 
Method SummaryModifier and TypeMethodDescriptionstatic HeaderArgcreate(ParamInfo paramInfo, AnnotationWorkList annotations) Static creator.resolve(RestOpSession opSession) Resolves the parameter object.
- 
Constructor Details- 
HeaderArgConstructor.- Parameters:
- pi- The Java method parameter being resolved.
- annotations- The annotations to apply to any new part parsers.
 
 
- 
- 
Method Details- 
createStatic creator.
- 
resolveDescription copied from interface:RestOpArgResolves the parameter object.
 
-