blob: 49d6a96bebd8e53ad31d6cf005c93de7240e608d [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>RequestHeader (Apache Juneau 8.2.0)</title>
<link rel="stylesheet" type="text/css" href="../../../../javadoc.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="RequestHeader (Apache Juneau 8.2.0)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/apache/juneau/rest/RequestFormData.html" title="class in org.apache.juneau.rest"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../org/apache/juneau/rest/RequestHeaders.html" title="class in org.apache.juneau.rest"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/juneau/rest/RequestHeader.html" target="_top">Frames</a></li>
<li><a href="RequestHeader.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.juneau.rest</div>
<h2 title="Class RequestHeader" class="title">Class RequestHeader</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>org.apache.juneau.rest.RequestHeader</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="https://hc.apache.org/httpcomponents-core-4.4.x/httpcore/apidocs/org/apache/http/Header.html?is-external=true" title="class or interface in org.apache.http">Header</a>, <a href="https://hc.apache.org/httpcomponents-core-4.4.x/httpcore/apidocs/org/apache/http/NameValuePair.html?is-external=true" title="class or interface in org.apache.http">NameValuePair</a></dd>
</dl>
<hr>
<br>
<pre>public class <a href="../../../../src-html/org/apache/juneau/rest/RequestHeader.html#line.32">RequestHeader</a>
extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>
implements <a href="https://hc.apache.org/httpcomponents-core-4.4.x/httpcore/apidocs/org/apache/http/Header.html?is-external=true" title="class or interface in org.apache.http">Header</a></pre>
<div class="block">Represents a single header on an HTTP response.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestHeader.html#RequestHeader-org.apache.juneau.rest.RestRequest-org.apache.juneau.rest.RestResponse-org.apache.http.Header-">RequestHeader</a></span>(<a href="../../../../org/apache/juneau/rest/RestRequest.html" title="class in org.apache.juneau.rest">RestRequest</a>&nbsp;request,
<a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a>&nbsp;response,
<a href="https://hc.apache.org/httpcomponents-core-4.4.x/httpcore/apidocs/org/apache/http/Header.html?is-external=true" title="class or interface in org.apache.http">Header</a>&nbsp;header)</code>
<div class="block">Constructor.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>&lt;T&gt;&nbsp;T</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestHeader.html#as-java.lang.Class-">as</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;T&gt;&nbsp;type)</code>
<div class="block">Converts this header to the specified type.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>&lt;T&gt;&nbsp;T</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestHeader.html#as-org.apache.juneau.ClassMeta-">as</a></span>(<a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a>&lt;T&gt;&nbsp;type)</code>
<div class="block">Converts this header to the specified type.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>&lt;T&gt;&nbsp;<a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestHeader.html#as-org.apache.juneau.utils.Mutable-java.lang.Class-">as</a></span>(<a href="../../../../org/apache/juneau/utils/Mutable.html" title="class in org.apache.juneau.utils">Mutable</a>&lt;T&gt;&nbsp;m,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;T&gt;&nbsp;type)</code>
<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RequestHeader.html#as-java.lang.Class-"><code>as(Class)</code></a> but sets the value in a mutable for fluent calls.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>&lt;T&gt;&nbsp;<a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestHeader.html#as-org.apache.juneau.utils.Mutable-org.apache.juneau.ClassMeta-">as</a></span>(<a href="../../../../org/apache/juneau/utils/Mutable.html" title="class in org.apache.juneau.utils">Mutable</a>&lt;T&gt;&nbsp;m,
<a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a>&lt;T&gt;&nbsp;type)</code>
<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RequestHeader.html#as-org.apache.juneau.ClassMeta-"><code>as(ClassMeta)</code></a> but sets the value in a mutable for fluent calls.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>&lt;T&gt;&nbsp;<a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestHeader.html#as-org.apache.juneau.utils.Mutable-java.lang.reflect.Type-java.lang.reflect.Type...-">as</a></span>(<a href="../../../../org/apache/juneau/utils/Mutable.html" title="class in org.apache.juneau.utils">Mutable</a>&lt;T&gt;&nbsp;m,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a>&nbsp;type,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a>...&nbsp;args)</code>
<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RequestHeader.html#as-java.lang.reflect.Type-java.lang.reflect.Type...-"><code>as(Type,Type...)</code></a> but sets the value in a mutable for fluent calls.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>&lt;T&gt;&nbsp;T</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestHeader.html#as-java.lang.reflect.Type-java.lang.reflect.Type...-">as</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a>&nbsp;type,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a>...&nbsp;args)</code>
<div class="block">Converts this header to the specified type.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestHeader.html#asMatcher-org.apache.juneau.utils.Mutable-java.util.regex.Pattern-">asMatcher</a></span>(<a href="../../../../org/apache/juneau/utils/Mutable.html" title="class in org.apache.juneau.utils">Mutable</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/regex/Matcher.html?is-external=true" title="class or interface in java.util.regex">Matcher</a>&gt;&nbsp;m,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html?is-external=true" title="class or interface in java.util.regex">Pattern</a>&nbsp;pattern)</code>
<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RequestHeader.html#asMatcher-java.util.regex.Pattern-"><code>asMatcher(Pattern)</code></a> but sets the value in a mutable for fluent calls.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestHeader.html#asMatcher-org.apache.juneau.utils.Mutable-java.lang.String-">asMatcher</a></span>(<a href="../../../../org/apache/juneau/utils/Mutable.html" title="class in org.apache.juneau.utils">Mutable</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/regex/Matcher.html?is-external=true" title="class or interface in java.util.regex">Matcher</a>&gt;&nbsp;m,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;regex)</code>
<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RequestHeader.html#asMatcher-java.lang.String-"><code>asMatcher(String)</code></a> but sets the value in a mutable for fluent calls.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestHeader.html#asMatcher-org.apache.juneau.utils.Mutable-java.lang.String-int-">asMatcher</a></span>(<a href="../../../../org/apache/juneau/utils/Mutable.html" title="class in org.apache.juneau.utils">Mutable</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/regex/Matcher.html?is-external=true" title="class or interface in java.util.regex">Matcher</a>&gt;&nbsp;m,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;regex,
int&nbsp;flags)</code>
<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RequestHeader.html#asMatcher-java.lang.String-int-"><code>asMatcher(String,int)</code></a> but sets the value in a mutable for fluent calls.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/regex/Matcher.html?is-external=true" title="class or interface in java.util.regex">Matcher</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestHeader.html#asMatcher-java.util.regex.Pattern-">asMatcher</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html?is-external=true" title="class or interface in java.util.regex">Pattern</a>&nbsp;pattern)</code>
<div class="block">Matches the specified pattern against this header value.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/regex/Matcher.html?is-external=true" title="class or interface in java.util.regex">Matcher</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestHeader.html#asMatcher-java.lang.String-">asMatcher</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;regex)</code>
<div class="block">Matches the specified pattern against this header value.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/regex/Matcher.html?is-external=true" title="class or interface in java.util.regex">Matcher</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestHeader.html#asMatcher-java.lang.String-int-">asMatcher</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;regex,
int&nbsp;flags)</code>
<div class="block">Matches the specified pattern against this header value.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>&lt;T&gt;&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util">Optional</a>&lt;T&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestHeader.html#asOptional-java.lang.Class-">asOptional</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;T&gt;&nbsp;type)</code>
<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RequestHeader.html#as-java.lang.Class-"><code>as(Class)</code></a> but returns the value as an <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util"><code>Optional</code></a>.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>&lt;T&gt;&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util">Optional</a>&lt;T&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestHeader.html#asOptional-org.apache.juneau.ClassMeta-">asOptional</a></span>(<a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a>&lt;T&gt;&nbsp;type)</code>
<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RequestHeader.html#as-org.apache.juneau.ClassMeta-"><code>as(ClassMeta)</code></a> but returns the value as an <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util"><code>Optional</code></a>.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>&lt;T&gt;&nbsp;<a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestHeader.html#asOptional-org.apache.juneau.utils.Mutable-java.lang.Class-">asOptional</a></span>(<a href="../../../../org/apache/juneau/utils/Mutable.html" title="class in org.apache.juneau.utils">Mutable</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util">Optional</a>&lt;T&gt;&gt;&nbsp;m,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;T&gt;&nbsp;type)</code>
<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RequestHeader.html#asOptional-java.lang.Class-"><code>asOptional(Class)</code></a> but sets the value in a mutable for fluent calls.</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>&lt;T&gt;&nbsp;<a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestHeader.html#asOptional-org.apache.juneau.utils.Mutable-org.apache.juneau.ClassMeta-">asOptional</a></span>(<a href="../../../../org/apache/juneau/utils/Mutable.html" title="class in org.apache.juneau.utils">Mutable</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util">Optional</a>&lt;T&gt;&gt;&nbsp;m,
<a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a>&lt;T&gt;&nbsp;type)</code>
<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RequestHeader.html#asOptional-org.apache.juneau.ClassMeta-"><code>asOptional(ClassMeta)</code></a> but sets the value in a mutable for fluent calls.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>&lt;T&gt;&nbsp;<a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestHeader.html#asOptional-org.apache.juneau.utils.Mutable-java.lang.reflect.Type-java.lang.reflect.Type...-">asOptional</a></span>(<a href="../../../../org/apache/juneau/utils/Mutable.html" title="class in org.apache.juneau.utils">Mutable</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util">Optional</a>&lt;T&gt;&gt;&nbsp;m,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a>&nbsp;type,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a>...&nbsp;args)</code>
<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RequestHeader.html#asOptional-java.lang.reflect.Type-java.lang.reflect.Type...-"><code>asOptional(Type,Type...)</code></a> but sets the value in a mutable for fluent calls.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>&lt;T&gt;&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util">Optional</a>&lt;T&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestHeader.html#asOptional-java.lang.reflect.Type-java.lang.reflect.Type...-">asOptional</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a>&nbsp;type,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a>...&nbsp;args)</code>
<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RequestHeader.html#as-java.lang.reflect.Type-java.lang.reflect.Type...-"><code>as(Type,Type...)</code></a> but returns the value as an <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util"><code>Optional</code></a>.</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util">Optional</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestHeader.html#asOptionalString--">asOptionalString</a></span>()</code>
<div class="block">Returns the value of this header as an <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util"><code>Optional</code></a>.</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestHeader.html#assertContains-java.lang.String...-">assertContains</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>...&nbsp;values)</code>
<div class="block">Asserts that the header contains all the specified substrings.</div>
</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestHeader.html#assertExists--">assertExists</a></span>()</code>
<div class="block">Asserts that the header equals the specified value.</div>
</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestHeader.html#assertMatches-java.util.regex.Pattern-">assertMatches</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html?is-external=true" title="class or interface in java.util.regex">Pattern</a>&nbsp;pattern)</code>
<div class="block">Asserts that the header matches the specified pattern.</div>
</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestHeader.html#assertMatches-java.lang.String-">assertMatches</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;regex)</code>
<div class="block">Asserts that the header matches the specified regular expression.</div>
</td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestHeader.html#assertMatches-java.lang.String-int-">assertMatches</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;regex,
int&nbsp;flags)</code>
<div class="block">Asserts that the header matches the specified regular expression.</div>
</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestHeader.html#assertValue-java.util.function.Predicate-">assertValue</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Predicate.html?is-external=true" title="class or interface in java.util.function">Predicate</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&nbsp;test)</code>
<div class="block">Asserts that the header passes the specified predicate test.</div>
</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestHeader.html#assertValue-java.lang.String-">assertValue</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;value)</code>
<div class="block">Asserts that the header equals the specified value.</div>
</td>
</tr>
<tr id="i26" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestHeader.html#asString--">asString</a></span>()</code>
<div class="block">Returns the value of this header as a string.</div>
</td>
</tr>
<tr id="i27" class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestHeader.html#asString-org.apache.juneau.utils.Mutable-">asString</a></span>(<a href="../../../../org/apache/juneau/utils/Mutable.html" title="class in org.apache.juneau.utils">Mutable</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&nbsp;m)</code>
<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RequestHeader.html#asString--"><code>asString()</code></a> but sets the value in a mutable for fluent calls.</div>
</td>
</tr>
<tr id="i28" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestHeader.html#asStringOrElse-org.apache.juneau.utils.Mutable-java.lang.String-">asStringOrElse</a></span>(<a href="../../../../org/apache/juneau/utils/Mutable.html" title="class in org.apache.juneau.utils">Mutable</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&nbsp;m,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;def)</code>
<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RequestHeader.html#asStringOrElse-java.lang.String-"><code>asStringOrElse(String)</code></a> but sets the value in a mutable for fluent calls.</div>
</td>
</tr>
<tr id="i29" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestHeader.html#asStringOrElse-java.lang.String-">asStringOrElse</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;def)</code>
<div class="block">Returns the value of this header as a string with a default value.</div>
</td>
</tr>
<tr id="i30" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestHeader.html#exists--">exists</a></span>()</code>
<div class="block">Returns <jk>true</jk> if this header exists on the response.</div>
</td>
</tr>
<tr id="i31" class="rowColor">
<td class="colFirst"><code><a href="https://hc.apache.org/httpcomponents-core-4.4.x/httpcore/apidocs/org/apache/http/HeaderElement.html?is-external=true" title="class or interface in org.apache.http">HeaderElement</a>[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestHeader.html#getElements--">getElements</a></span>()</code>
<div class="block">Parses the value.</div>
</td>
</tr>
<tr id="i32" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestHeader.html#getName--">getName</a></span>()</code>
<div class="block">Gets the name of this pair.</div>
</td>
</tr>
<tr id="i33" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestHeader.html#getValue--">getValue</a></span>()</code>
<div class="block">Gets the value of this pair.</div>
</td>
</tr>
<tr id="i34" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/juneau/rest/RequestHeader.html" title="class in org.apache.juneau.rest">RequestHeader</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestHeader.html#parser-org.apache.juneau.httppart.HttpPartParserSession-">parser</a></span>(<a href="../../../../org/apache/juneau/httppart/HttpPartParserSession.html" title="interface in org.apache.juneau.httppart">HttpPartParserSession</a>&nbsp;value)</code>
<div class="block">Specifies the part parser to use for this header.</div>
</td>
</tr>
<tr id="i35" class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/juneau/rest/RequestHeader.html" title="class in org.apache.juneau.rest">RequestHeader</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestHeader.html#schema-org.apache.juneau.httppart.HttpPartSchema-">schema</a></span>(<a href="../../../../org/apache/juneau/httppart/HttpPartSchema.html" title="class in org.apache.juneau.httppart">HttpPartSchema</a>&nbsp;value)</code>
<div class="block">Specifies the part schema for this header.</div>
</td>
</tr>
<tr id="i36" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestHeader.html#toResponse--">toResponse</a></span>()</code>
<div class="block">Returns the response that created this object.</div>
</td>
</tr>
<tr id="i37" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RequestHeader.html#toString--">toString</a></span>()</code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="RequestHeader-org.apache.juneau.rest.RestRequest-org.apache.juneau.rest.RestResponse-org.apache.http.Header-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>RequestHeader</h4>
<pre>public&nbsp;<a href="../../../../src-html/org/apache/juneau/rest/RequestHeader.html#line.65">RequestHeader</a>(<a href="../../../../org/apache/juneau/rest/RestRequest.html" title="class in org.apache.juneau.rest">RestRequest</a>&nbsp;request,
<a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a>&nbsp;response,
<a href="https://hc.apache.org/httpcomponents-core-4.4.x/httpcore/apidocs/org/apache/http/Header.html?is-external=true" title="class or interface in org.apache.http">Header</a>&nbsp;header)</pre>
<div class="block">Constructor.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>request</code> - The request object.</dd>
<dd><code>response</code> - The response object.</dd>
<dd><code>header</code> - The wrapped header. Can be <jk>null</jk>.</dd>
</dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="schema-org.apache.juneau.httppart.HttpPartSchema-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>schema</h4>
<pre>public&nbsp;<a href="../../../../org/apache/juneau/rest/RequestHeader.html" title="class in org.apache.juneau.rest">RequestHeader</a>&nbsp;<a href="../../../../src-html/org/apache/juneau/rest/RequestHeader.html#line.86">schema</a>(<a href="../../../../org/apache/juneau/httppart/HttpPartSchema.html" title="class in org.apache.juneau.httppart">HttpPartSchema</a>&nbsp;value)</pre>
<div class="block">Specifies the part schema for this header.
<p>
Used by schema-based part parsers such as <a href="../../../../org/apache/juneau/oapi/OpenApiParser.html" title="class in org.apache.juneau.oapi"><code>OpenApiParser</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>value</code> - The part schema.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>This object (for method chaining).</dd>
</dl>
</li>
</ul>
<a name="parser-org.apache.juneau.httppart.HttpPartParserSession-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>parser</h4>
<pre>public&nbsp;<a href="../../../../org/apache/juneau/rest/RequestHeader.html" title="class in org.apache.juneau.rest">RequestHeader</a>&nbsp;<a href="../../../../src-html/org/apache/juneau/rest/RequestHeader.html#line.102">parser</a>(<a href="../../../../org/apache/juneau/httppart/HttpPartParserSession.html" title="interface in org.apache.juneau.httppart">HttpPartParserSession</a>&nbsp;value)</pre>
<div class="block">Specifies the part parser to use for this header.
<p>
If not specified, uses the part parser defined on the client by calling <a href="../../../../org/apache/juneau/rest/RestContextBuilder.html#partParser-java.lang.Class-"><code>RestContextBuilder.partParser(Class)</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>value</code> - The new part parser to use for this header.
<br>If <jk>null</jk>, <a href="../../../../org/apache/juneau/httppart/SimplePartParser.html#DEFAULT"><code>SimplePartParser.DEFAULT</code></a> will be used.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>This object (for method chaining).</dd>
</dl>
</li>
</ul>
<a name="exists--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>exists</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../src-html/org/apache/juneau/rest/RequestHeader.html#line.116">exists</a>()</pre>
<div class="block">Returns <jk>true</jk> if this header exists on the response.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><jk>true</jk> if this header exists on the response.</dd>
</dl>
</li>
</ul>
<a name="asString--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>asString</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../src-html/org/apache/juneau/rest/RequestHeader.html#line.125">asString</a>()</pre>
<div class="block">Returns the value of this header as a string.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The value of this header as a string, or <jk>null</jk> if header was not present.</dd>
</dl>
</li>
</ul>
<a name="asString-org.apache.juneau.utils.Mutable-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>asString</h4>
<pre>public&nbsp;<a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a>&nbsp;<a href="../../../../src-html/org/apache/juneau/rest/RequestHeader.html#line.135">asString</a>(<a href="../../../../org/apache/juneau/utils/Mutable.html" title="class in org.apache.juneau.utils">Mutable</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&nbsp;m)</pre>
<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RequestHeader.html#asString--"><code>asString()</code></a> but sets the value in a mutable for fluent calls.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>m</code> - The mutable to set the header value in.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The response object (for method chaining).</dd>
</dl>
</li>
</ul>
<a name="asOptionalString--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>asOptionalString</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util">Optional</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&nbsp;<a href="../../../../src-html/org/apache/juneau/rest/RequestHeader.html#line.145">asOptionalString</a>()</pre>
<div class="block">Returns the value of this header as an <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util"><code>Optional</code></a>.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The value of this header as an <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util"><code>Optional</code></a>, or an empty optional if header was not present.</dd>
</dl>
</li>
</ul>
<a name="asStringOrElse-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>asStringOrElse</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../src-html/org/apache/juneau/rest/RequestHeader.html#line.155">asStringOrElse</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;def)</pre>
<div class="block">Returns the value of this header as a string with a default value.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>def</code> - The default value.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The value of this header as a string, or the default value if header was not present.</dd>
</dl>
</li>
</ul>
<a name="asStringOrElse-org.apache.juneau.utils.Mutable-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>asStringOrElse</h4>
<pre>public&nbsp;<a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a>&nbsp;<a href="../../../../src-html/org/apache/juneau/rest/RequestHeader.html#line.166">asStringOrElse</a>(<a href="../../../../org/apache/juneau/utils/Mutable.html" title="class in org.apache.juneau.utils">Mutable</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&nbsp;m,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;def)</pre>
<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RequestHeader.html#asStringOrElse-java.lang.String-"><code>asStringOrElse(String)</code></a> but sets the value in a mutable for fluent calls.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>m</code> - The mutable to set the header value in.</dd>
<dd><code>def</code> - The default value.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The response object (for method chaining).</dd>
</dl>
</li>
</ul>
<a name="as-java.lang.reflect.Type-java.lang.reflect.Type...-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>as</h4>
<pre>public&nbsp;&lt;T&gt;&nbsp;T&nbsp;<a href="../../../../src-html/org/apache/juneau/rest/RequestHeader.html#line.180">as</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a>&nbsp;type,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a>...&nbsp;args)
throws <a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre>
<div class="block">Converts this header to the specified type.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>T</code> - The type to convert to.</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - The type to convert to.</dd>
<dd><code>args</code> - The type parameters.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The converted type, or <jk>null</jk> if header is not present.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></code> - If value could not be parsed.</dd>
</dl>
</li>
</ul>
<a name="as-org.apache.juneau.utils.Mutable-java.lang.reflect.Type-java.lang.reflect.Type...-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>as</h4>
<pre>public&nbsp;&lt;T&gt;&nbsp;<a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a>&nbsp;<a href="../../../../src-html/org/apache/juneau/rest/RequestHeader.html#line.194">as</a>(<a href="../../../../org/apache/juneau/utils/Mutable.html" title="class in org.apache.juneau.utils">Mutable</a>&lt;T&gt;&nbsp;m,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a>&nbsp;type,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a>...&nbsp;args)
throws <a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre>
<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RequestHeader.html#as-java.lang.reflect.Type-java.lang.reflect.Type...-"><code>as(Type,Type...)</code></a> but sets the value in a mutable for fluent calls.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>T</code> - The type to convert to.</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>m</code> - The mutable to set the parsed header value in.</dd>
<dd><code>type</code> - The type to convert to.</dd>
<dd><code>args</code> - The type parameters.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The response object (for method chaining).</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></code> - If value could not be parsed.</dd>
</dl>
</li>
</ul>
<a name="as-java.lang.Class-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>as</h4>
<pre>public&nbsp;&lt;T&gt;&nbsp;T&nbsp;<a href="../../../../src-html/org/apache/juneau/rest/RequestHeader.html#line.207">as</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;T&gt;&nbsp;type)
throws <a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre>
<div class="block">Converts this header to the specified type.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>T</code> - The type to convert to.</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - The type to convert to.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The converted type, or <jk>null</jk> if header is not present.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></code> - If value could not be parsed.</dd>
</dl>
</li>
</ul>
<a name="as-org.apache.juneau.utils.Mutable-java.lang.Class-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>as</h4>
<pre>public&nbsp;&lt;T&gt;&nbsp;<a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a>&nbsp;<a href="../../../../src-html/org/apache/juneau/rest/RequestHeader.html#line.220">as</a>(<a href="../../../../org/apache/juneau/utils/Mutable.html" title="class in org.apache.juneau.utils">Mutable</a>&lt;T&gt;&nbsp;m,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;T&gt;&nbsp;type)
throws <a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre>
<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RequestHeader.html#as-java.lang.Class-"><code>as(Class)</code></a> but sets the value in a mutable for fluent calls.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>T</code> - The type to convert to.</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>m</code> - The mutable to set the parsed header value in.</dd>
<dd><code>type</code> - The type to convert to.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The response object (for method chaining).</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></code> - If value could not be parsed.</dd>
</dl>
</li>
</ul>
<a name="as-org.apache.juneau.ClassMeta-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>as</h4>
<pre>public&nbsp;&lt;T&gt;&nbsp;T&nbsp;<a href="../../../../src-html/org/apache/juneau/rest/RequestHeader.html#line.233">as</a>(<a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a>&lt;T&gt;&nbsp;type)
throws <a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre>
<div class="block">Converts this header to the specified type.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>T</code> - The type to convert to.</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - The type to convert to.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The converted type, or <jk>null</jk> if header is not present.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></code> - If value could not be parsed.</dd>
</dl>
</li>
</ul>
<a name="as-org.apache.juneau.utils.Mutable-org.apache.juneau.ClassMeta-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>as</h4>
<pre>public&nbsp;&lt;T&gt;&nbsp;<a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a>&nbsp;<a href="../../../../src-html/org/apache/juneau/rest/RequestHeader.html#line.246">as</a>(<a href="../../../../org/apache/juneau/utils/Mutable.html" title="class in org.apache.juneau.utils">Mutable</a>&lt;T&gt;&nbsp;m,
<a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a>&lt;T&gt;&nbsp;type)
throws <a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre>
<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RequestHeader.html#as-org.apache.juneau.ClassMeta-"><code>as(ClassMeta)</code></a> but sets the value in a mutable for fluent calls.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>T</code> - The type to convert to.</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>m</code> - The mutable to set the parsed header value in.</dd>
<dd><code>type</code> - The type to convert to.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The response object (for method chaining).</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></code> - If value could not be parsed.</dd>
</dl>
</li>
</ul>
<a name="asOptional-java.lang.reflect.Type-java.lang.reflect.Type...-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>asOptional</h4>
<pre>public&nbsp;&lt;T&gt;&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util">Optional</a>&lt;T&gt;&nbsp;<a href="../../../../src-html/org/apache/juneau/rest/RequestHeader.html#line.260">asOptional</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a>&nbsp;type,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a>...&nbsp;args)
throws <a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre>
<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RequestHeader.html#as-java.lang.reflect.Type-java.lang.reflect.Type...-"><code>as(Type,Type...)</code></a> but returns the value as an <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util"><code>Optional</code></a>.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>T</code> - The type to convert to.</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - The type to convert to.</dd>
<dd><code>args</code> - The type parameters.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The parsed value as an <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util"><code>Optional</code></a>, or an empty optional if header was not present.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></code> - If value could not be parsed.</dd>
</dl>
</li>
</ul>
<a name="asOptional-org.apache.juneau.utils.Mutable-java.lang.reflect.Type-java.lang.reflect.Type...-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>asOptional</h4>
<pre>public&nbsp;&lt;T&gt;&nbsp;<a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a>&nbsp;<a href="../../../../src-html/org/apache/juneau/rest/RequestHeader.html#line.274">asOptional</a>(<a href="../../../../org/apache/juneau/utils/Mutable.html" title="class in org.apache.juneau.utils">Mutable</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util">Optional</a>&lt;T&gt;&gt;&nbsp;m,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a>&nbsp;type,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a>...&nbsp;args)
throws <a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre>
<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RequestHeader.html#asOptional-java.lang.reflect.Type-java.lang.reflect.Type...-"><code>asOptional(Type,Type...)</code></a> but sets the value in a mutable for fluent calls.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>T</code> - The type to convert to.</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>m</code> - The mutable to set the parsed header value in.</dd>
<dd><code>type</code> - The type to convert to.</dd>
<dd><code>args</code> - The type parameters.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The response object (for method chaining).</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></code> - If value could not be parsed.</dd>
</dl>
</li>
</ul>
<a name="asOptional-java.lang.Class-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>asOptional</h4>
<pre>public&nbsp;&lt;T&gt;&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util">Optional</a>&lt;T&gt;&nbsp;<a href="../../../../src-html/org/apache/juneau/rest/RequestHeader.html#line.287">asOptional</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;T&gt;&nbsp;type)
throws <a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre>
<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RequestHeader.html#as-java.lang.Class-"><code>as(Class)</code></a> but returns the value as an <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util"><code>Optional</code></a>.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>T</code> - The type to convert to.</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - The type to convert to.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The parsed value as an <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util"><code>Optional</code></a>, or an empty optional if header was not present.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></code> - If value could not be parsed.</dd>
</dl>
</li>
</ul>
<a name="asOptional-org.apache.juneau.utils.Mutable-java.lang.Class-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>asOptional</h4>
<pre>public&nbsp;&lt;T&gt;&nbsp;<a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a>&nbsp;<a href="../../../../src-html/org/apache/juneau/rest/RequestHeader.html#line.300">asOptional</a>(<a href="../../../../org/apache/juneau/utils/Mutable.html" title="class in org.apache.juneau.utils">Mutable</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util">Optional</a>&lt;T&gt;&gt;&nbsp;m,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;T&gt;&nbsp;type)
throws <a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre>
<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RequestHeader.html#asOptional-java.lang.Class-"><code>asOptional(Class)</code></a> but sets the value in a mutable for fluent calls.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>T</code> - The type to convert to.</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>m</code> - The mutable to set the parsed header value in.</dd>
<dd><code>type</code> - The type to convert to.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The response object (for method chaining).</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></code> - If value could not be parsed.</dd>
</dl>
</li>
</ul>
<a name="asOptional-org.apache.juneau.ClassMeta-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>asOptional</h4>
<pre>public&nbsp;&lt;T&gt;&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util">Optional</a>&lt;T&gt;&nbsp;<a href="../../../../src-html/org/apache/juneau/rest/RequestHeader.html#line.313">asOptional</a>(<a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a>&lt;T&gt;&nbsp;type)
throws <a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre>
<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RequestHeader.html#as-org.apache.juneau.ClassMeta-"><code>as(ClassMeta)</code></a> but returns the value as an <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util"><code>Optional</code></a>.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>T</code> - The type to convert to.</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - The type to convert to.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The parsed value as an <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util"><code>Optional</code></a>, or an empty optional if header was not present.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></code> - If value could not be parsed.</dd>
</dl>
</li>
</ul>
<a name="asOptional-org.apache.juneau.utils.Mutable-org.apache.juneau.ClassMeta-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>asOptional</h4>
<pre>public&nbsp;&lt;T&gt;&nbsp;<a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a>&nbsp;<a href="../../../../src-html/org/apache/juneau/rest/RequestHeader.html#line.326">asOptional</a>(<a href="../../../../org/apache/juneau/utils/Mutable.html" title="class in org.apache.juneau.utils">Mutable</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util">Optional</a>&lt;T&gt;&gt;&nbsp;m,
<a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a>&lt;T&gt;&nbsp;type)
throws <a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre>
<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RequestHeader.html#asOptional-org.apache.juneau.ClassMeta-"><code>asOptional(ClassMeta)</code></a> but sets the value in a mutable for fluent calls.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>T</code> - The type to convert to.</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>m</code> - The mutable to set the parsed header value in.</dd>
<dd><code>type</code> - The type to convert to.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The response object (for method chaining).</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></code> - If value could not be parsed.</dd>
</dl>
</li>
</ul>
<a name="asMatcher-java.util.regex.Pattern-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>asMatcher</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/regex/Matcher.html?is-external=true" title="class or interface in java.util.regex">Matcher</a>&nbsp;<a href="../../../../src-html/org/apache/juneau/rest/RequestHeader.html#line.349">asMatcher</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html?is-external=true" title="class or interface in java.util.regex">Pattern</a>&nbsp;pattern)</pre>
<div class="block">Matches the specified pattern against this header value.
<h5 class='section'>Example:</h5>
<p class='bcode w800'>
<jc>// Parse header using a regular expression.</jc>
Matcher m = client
.get(<jsf>URL</jsf>)
.run()
.getHeader(<js>"Content-Type"</js>).asMatcher(Pattern.<jsm>compile</jsm>(<js>"application/(.*)"</js>));
<jk>if</jk> (m.matches())
String mediaType = m.group(1);
</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>pattern</code> - The regular expression pattern to match.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The matcher.</dd>
</dl>
</li>
</ul>
<a name="asMatcher-org.apache.juneau.utils.Mutable-java.util.regex.Pattern-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>asMatcher</h4>
<pre>public&nbsp;<a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a>&nbsp;<a href="../../../../src-html/org/apache/juneau/rest/RequestHeader.html#line.373">asMatcher</a>(<a href="../../../../org/apache/juneau/utils/Mutable.html" title="class in org.apache.juneau.utils">Mutable</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/regex/Matcher.html?is-external=true" title="class or interface in java.util.regex">Matcher</a>&gt;&nbsp;m,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html?is-external=true" title="class or interface in java.util.regex">Pattern</a>&nbsp;pattern)</pre>
<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RequestHeader.html#asMatcher-java.util.regex.Pattern-"><code>asMatcher(Pattern)</code></a> but sets the value in a mutable for fluent calls.
<h5 class='section'>Example:</h5>
<p class='bcode w800'>
<jc>// Parse header using a regular expression.</jc>
Mutable&lt;Matcher&gt; m = Mutable.create();
Matcher m = client
.get(<jsf>URL</jsf>)
.run()
.getHeader(<js>"Content-Type"</js>).asMatcher(m, Pattern.<jsm>compile</jsm>(<js>"application/(.*)"</js>));
<jk>if</jk> (m.get().matches())
String mediaType = m.get().group(1);
</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>m</code> - The mutable to set the value in.</dd>
<dd><code>pattern</code> - The regular expression pattern to match.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The response object (for method chaining).</dd>
</dl>
</li>
</ul>
<a name="asMatcher-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>asMatcher</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/regex/Matcher.html?is-external=true" title="class or interface in java.util.regex">Matcher</a>&nbsp;<a href="../../../../src-html/org/apache/juneau/rest/RequestHeader.html#line.396">asMatcher</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;regex)</pre>
<div class="block">Matches the specified pattern against this header value.
<h5 class='section'>Example:</h5>
<p class='bcode w800'>
<jc>// Parse header using a regular expression.</jc>
Matcher m = client
.get(<jsf>URL</jsf>)
.run()
.getHeader(<js>"Content-Type"</js>).asMatcher(<js>"application/(.*)"</js>);
<jk>if</jk> (m.matches())
String mediaType = m.group(1);
</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>regex</code> - The regular expression pattern to match.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The matcher.</dd>
</dl>
</li>
</ul>
<a name="asMatcher-org.apache.juneau.utils.Mutable-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>asMatcher</h4>
<pre>public&nbsp;<a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a>&nbsp;<a href="../../../../src-html/org/apache/juneau/rest/RequestHeader.html#line.420">asMatcher</a>(<a href="../../../../org/apache/juneau/utils/Mutable.html" title="class in org.apache.juneau.utils">Mutable</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/regex/Matcher.html?is-external=true" title="class or interface in java.util.regex">Matcher</a>&gt;&nbsp;m,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;regex)</pre>
<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RequestHeader.html#asMatcher-java.lang.String-"><code>asMatcher(String)</code></a> but sets the value in a mutable for fluent calls.
<h5 class='section'>Example:</h5>
<p class='bcode w800'>
<jc>// Parse header using a regular expression.</jc>
Mutable&lt;Matcher&gt; m = Mutable.create();
Matcher m = client
.get(<jsf>URL</jsf>)
.run()
.getHeader(<js>"Content-Type"</js>).asMatcher(m, <js>"application/(.*)"</js>);
<jk>if</jk> (m.get().matches())
String mediaType = m.get().group(1);
</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>m</code> - The mutable to set the value in.</dd>
<dd><code>regex</code> - The regular expression pattern to match.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The response object (for method chaining).</dd>
</dl>
</li>
</ul>
<a name="asMatcher-java.lang.String-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>asMatcher</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/regex/Matcher.html?is-external=true" title="class or interface in java.util.regex">Matcher</a>&nbsp;<a href="../../../../src-html/org/apache/juneau/rest/RequestHeader.html#line.444">asMatcher</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;regex,
int&nbsp;flags)</pre>
<div class="block">Matches the specified pattern against this header value.
<h5 class='section'>Example:</h5>
<p class='bcode w800'>
<jc>// Parse header using a regular expression.</jc>
Matcher m = client
.get(<jsf>URL</jsf>)
.run()
.getHeader(<js>"Content-Type"</js>).asMatcher(<js>"application/(.*)"</js>, <jsf>CASE_INSENSITIVE</jsf>);
<jk>if</jk> (m.matches())
String mediaType = m.group(1);
</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>regex</code> - The regular expression pattern to match.</dd>
<dd><code>flags</code> - Pattern match flags. See <a href="https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html?is-external=true#compile-java.lang.String-int-" title="class or interface in java.util.regex"><code>Pattern.compile(String, int)</code></a>.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The matcher.</dd>
</dl>
</li>
</ul>
<a name="asMatcher-org.apache.juneau.utils.Mutable-java.lang.String-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>asMatcher</h4>
<pre>public&nbsp;<a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a>&nbsp;<a href="../../../../src-html/org/apache/juneau/rest/RequestHeader.html#line.469">asMatcher</a>(<a href="../../../../org/apache/juneau/utils/Mutable.html" title="class in org.apache.juneau.utils">Mutable</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/regex/Matcher.html?is-external=true" title="class or interface in java.util.regex">Matcher</a>&gt;&nbsp;m,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;regex,
int&nbsp;flags)</pre>
<div class="block">Same as <a href="../../../../org/apache/juneau/rest/RequestHeader.html#asMatcher-java.lang.String-int-"><code>asMatcher(String,int)</code></a> but sets the value in a mutable for fluent calls.
<h5 class='section'>Example:</h5>
<p class='bcode w800'>
<jc>// Parse header using a regular expression.</jc>
Mutable&lt;Matcher&gt; m = Mutable.create();
Matcher m = client
.get(<jsf>URL</jsf>)
.run()
.getHeader(<js>"Content-Type"</js>).asMatcher(m, <js>"application/(.*)"</js>, <jsf>CASE_INSENSITIVE</jsf>);
<jk>if</jk> (m.get().matches())
String mediaType = m.get().group(1);
</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>m</code> - The mutable to set the value in.</dd>
<dd><code>regex</code> - The regular expression pattern to match.</dd>
<dd><code>flags</code> - Pattern match flags. See <a href="https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html?is-external=true#compile-java.lang.String-int-" title="class or interface in java.util.regex"><code>Pattern.compile(String, int)</code></a>.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The response object (for method chaining).</dd>
</dl>
</li>
</ul>
<a name="toResponse--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toResponse</h4>
<pre>public&nbsp;<a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a>&nbsp;<a href="../../../../src-html/org/apache/juneau/rest/RequestHeader.html#line.479">toResponse</a>()</pre>
<div class="block">Returns the response that created this object.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The response that created this object.</dd>
</dl>
</li>
</ul>
<a name="assertExists--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>assertExists</h4>
<pre>public&nbsp;<a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a>&nbsp;<a href="../../../../src-html/org/apache/juneau/rest/RequestHeader.html#line.502">assertExists</a>()
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/AssertionError.html?is-external=true" title="class or interface in java.lang">AssertionError</a></pre>
<div class="block">Asserts that the header equals the specified value.
<h5 class='section'>Example:</h5>
<p class='bcode w800'>
<jc>// Validates the content type header is provided.</jc>
client
.get(<jsf>URL</jsf>)
.run()
.getHeader(<js>"Content-Type"</js>).assertExists();
</p></div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The response object (for method chaining).</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/AssertionError.html?is-external=true" title="class or interface in java.lang">AssertionError</a></code> - If assertion failed.</dd>
</dl>
</li>
</ul>
<a name="assertValue-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>assertValue</h4>
<pre>public&nbsp;<a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a>&nbsp;<a href="../../../../src-html/org/apache/juneau/rest/RequestHeader.html#line.524">assertValue</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;value)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/AssertionError.html?is-external=true" title="class or interface in java.lang">AssertionError</a></pre>
<div class="block">Asserts that the header equals the specified value.
<h5 class='section'>Example:</h5>
<p class='bcode w800'>
<jc>// Validates the content type is JSON.</jc>
client
.get(<jsf>URL</jsf>)
.run()
.getHeader(<js>"Content-Type"</js>).assertValue(<js>"application/json"</js>);
</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>value</code> - The value to test for.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The response object (for method chaining).</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/AssertionError.html?is-external=true" title="class or interface in java.lang">AssertionError</a></code> - If assertion failed.</dd>
</dl>
</li>
</ul>
<a name="assertValue-java.util.function.Predicate-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>assertValue</h4>
<pre>public&nbsp;<a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a>&nbsp;<a href="../../../../src-html/org/apache/juneau/rest/RequestHeader.html#line.546">assertValue</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Predicate.html?is-external=true" title="class or interface in java.util.function">Predicate</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&nbsp;test)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/AssertionError.html?is-external=true" title="class or interface in java.lang">AssertionError</a></pre>
<div class="block">Asserts that the header passes the specified predicate test.
<h5 class='section'>Example:</h5>
<p class='bcode w800'>
<jc>// Validates the content type is JSON.</jc>
client
.get(<jsf>URL</jsf>)
.run()
.getHeader(<js>"Content-Type"</js>).assertValue(x -&gt; x.equals(<js>"application/json"</js>));
</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>test</code> - The predicate to test for.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The response object (for method chaining).</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/AssertionError.html?is-external=true" title="class or interface in java.lang">AssertionError</a></code> - If assertion failed.</dd>
</dl>
</li>
</ul>
<a name="assertContains-java.lang.String...-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>assertContains</h4>
<pre>public&nbsp;<a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a>&nbsp;<a href="../../../../src-html/org/apache/juneau/rest/RequestHeader.html#line.569">assertContains</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>...&nbsp;values)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/AssertionError.html?is-external=true" title="class or interface in java.lang">AssertionError</a></pre>
<div class="block">Asserts that the header contains all the specified substrings.
<h5 class='section'>Example:</h5>
<p class='bcode w800'>
<jc>// Validates the content type is JSON.</jc>
client
.get(<jsf>URL</jsf>)
.run()
.getHeader(<js>"Content-Type"</js>).assertValueContains(<js>"json"</js>);
</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>values</code> - The substrings to test for.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The response object (for method chaining).</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/AssertionError.html?is-external=true" title="class or interface in java.lang">AssertionError</a></code> - If assertion failed.</dd>
</dl>
</li>
</ul>
<a name="assertMatches-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>assertMatches</h4>
<pre>public&nbsp;<a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a>&nbsp;<a href="../../../../src-html/org/apache/juneau/rest/RequestHeader.html#line.593">assertMatches</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;regex)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/AssertionError.html?is-external=true" title="class or interface in java.lang">AssertionError</a></pre>
<div class="block">Asserts that the header matches the specified regular expression.
<h5 class='section'>Example:</h5>
<p class='bcode w800'>
<jc>// Validates the content type is JSON.</jc>
client
.get(<jsf>URL</jsf>)
.run()
.getHeader(<js>"Content-Type"</js>).assertValueMatches(<js>".*json.*"</js>);
</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>regex</code> - The pattern to test for.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The response object (for method chaining).</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/AssertionError.html?is-external=true" title="class or interface in java.lang">AssertionError</a></code> - If assertion failed.</dd>
</dl>
</li>
</ul>
<a name="assertMatches-java.lang.String-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>assertMatches</h4>
<pre>public&nbsp;<a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a>&nbsp;<a href="../../../../src-html/org/apache/juneau/rest/RequestHeader.html#line.614">assertMatches</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;regex,
int&nbsp;flags)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/AssertionError.html?is-external=true" title="class or interface in java.lang">AssertionError</a></pre>
<div class="block">Asserts that the header matches the specified regular expression.
<h5 class='section'>Example:</h5>
<p class='bcode w800'>
<jc>// Validates the content type is JSON.</jc>
client
.get(<jsf>URL</jsf>)
.run()
.getHeader(<js>"Content-Type"</js>).assertValueMatches(<js>".*json.*"</js>, <jsf>CASE_INSENSITIVE</jsf>);
</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>regex</code> - The pattern to test for.</dd>
<dd><code>flags</code> - Pattern match flags. See <a href="https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html?is-external=true#compile-java.lang.String-int-" title="class or interface in java.util.regex"><code>Pattern.compile(String, int)</code></a>.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The response object (for method chaining).</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/AssertionError.html?is-external=true" title="class or interface in java.lang">AssertionError</a></code> - If assertion failed.</dd>
</dl>
</li>
</ul>
<a name="assertMatches-java.util.regex.Pattern-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>assertMatches</h4>
<pre>public&nbsp;<a href="../../../../org/apache/juneau/rest/RestResponse.html" title="class in org.apache.juneau.rest">RestResponse</a>&nbsp;<a href="../../../../src-html/org/apache/juneau/rest/RequestHeader.html#line.641">assertMatches</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html?is-external=true" title="class or interface in java.util.regex">Pattern</a>&nbsp;pattern)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/AssertionError.html?is-external=true" title="class or interface in java.lang">AssertionError</a></pre>
<div class="block">Asserts that the header matches the specified pattern.
<p>
The pattern can contain <js>"*"</js> to represent zero or more arbitrary characters.
<h5 class='section'>Example:</h5>
<p class='bcode w800'>
<jc>// Validates the content type is JSON.</jc>
Pattern p = Pattern.<jsm>compile</jsm>(<js>".*application\\/json.*"</js>);
client
.get(<jsf>URL</jsf>)
.run()
.getHeader(<js>"Content-Type"</js>).assertValueMatches(p);
</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>pattern</code> - The pattern to test for.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The response object (for method chaining).</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/AssertionError.html?is-external=true" title="class or interface in java.lang">AssertionError</a></code> - If assertion failed.</dd>
</dl>
</li>
</ul>
<a name="getName--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getName</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../src-html/org/apache/juneau/rest/RequestHeader.html#line.658">getName</a>()</pre>
<div class="block">Gets the name of this pair.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="https://hc.apache.org/httpcomponents-core-4.4.x/httpcore/apidocs/org/apache/http/NameValuePair.html?is-external=true#getName--" title="class or interface in org.apache.http">getName</a></code>&nbsp;in interface&nbsp;<code><a href="https://hc.apache.org/httpcomponents-core-4.4.x/httpcore/apidocs/org/apache/http/NameValuePair.html?is-external=true" title="class or interface in org.apache.http">NameValuePair</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The name of this pair, never <jk>null</jk>.</dd>
</dl>
</li>
</ul>
<a name="getValue--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getValue</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../src-html/org/apache/juneau/rest/RequestHeader.html#line.672">getValue</a>()</pre>
<div class="block">Gets the value of this pair.
<ul class='notes'>
<li><a href="../../../../org/apache/juneau/rest/RequestHeader.html#asString--"><code>asString()</code></a> is an equivalent method and the preferred method for fluent-style coding.
</ul></div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="https://hc.apache.org/httpcomponents-core-4.4.x/httpcore/apidocs/org/apache/http/NameValuePair.html?is-external=true#getValue--" title="class or interface in org.apache.http">getValue</a></code>&nbsp;in interface&nbsp;<code><a href="https://hc.apache.org/httpcomponents-core-4.4.x/httpcore/apidocs/org/apache/http/NameValuePair.html?is-external=true" title="class or interface in org.apache.http">NameValuePair</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The value of this pair, may be <jk>null</jk>.</dd>
</dl>
</li>
</ul>
<a name="getElements--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getElements</h4>
<pre>public&nbsp;<a href="https://hc.apache.org/httpcomponents-core-4.4.x/httpcore/apidocs/org/apache/http/HeaderElement.html?is-external=true" title="class or interface in org.apache.http">HeaderElement</a>[]&nbsp;<a href="../../../../src-html/org/apache/juneau/rest/RequestHeader.html#line.683">getElements</a>()
throws <a href="https://hc.apache.org/httpcomponents-core-4.4.x/httpcore/apidocs/org/apache/http/ParseException.html?is-external=true" title="class or interface in org.apache.http">ParseException</a></pre>
<div class="block">Parses the value.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="https://hc.apache.org/httpcomponents-core-4.4.x/httpcore/apidocs/org/apache/http/Header.html?is-external=true#getElements--" title="class or interface in org.apache.http">getElements</a></code>&nbsp;in interface&nbsp;<code><a href="https://hc.apache.org/httpcomponents-core-4.4.x/httpcore/apidocs/org/apache/http/Header.html?is-external=true" title="class or interface in org.apache.http">Header</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>An array of <a href="https://hc.apache.org/httpcomponents-core-4.4.x/httpcore/apidocs/org/apache/http/HeaderElement.html?is-external=true" title="class or interface in org.apache.http"><code>HeaderElement</code></a> entries, may be empty, but is never <jk>null</jk>.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://hc.apache.org/httpcomponents-core-4.4.x/httpcore/apidocs/org/apache/http/ParseException.html?is-external=true" title="class or interface in org.apache.http">ParseException</a></code> - In case of a parsing error.</dd>
</dl>
</li>
</ul>
<a name="toString--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>toString</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../src-html/org/apache/juneau/rest/RequestHeader.html#line.688">toString</a>()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a></code>&nbsp;in class&nbsp;<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/apache/juneau/rest/RequestFormData.html" title="class in org.apache.juneau.rest"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../org/apache/juneau/rest/RequestHeaders.html" title="class in org.apache.juneau.rest"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/juneau/rest/RequestHeader.html" target="_top">Frames</a></li>
<li><a href="RequestHeader.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 2016&#x2013;2020 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</body>
</html>