blob: 1518d61903295133a2f5b92052b7bf747246f666 [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>BasicPart (Apache Juneau 9.0-B1)</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="BasicPart (Apache Juneau 9.0-B1)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":9,"i4":9,"i5":10,"i6":10,"i7":10,"i8":9,"i9":9,"i10":10};
var tabs = {65535:["t0","All Methods"],1:["t1","Static 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/http/part/BasicLongPart.html" title="class in org.apache.juneau.http.part"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../org/apache/juneau/http/part/BasicPartIterator.html" title="class in org.apache.juneau.http.part"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/juneau/http/part/BasicPart.html" target="_top">Frames</a></li>
<li><a href="BasicPart.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.http.part</div>
<h2 title="Class BasicPart" class="title">Class BasicPart</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.http.part.BasicPart</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd>org.apache.http.NameValuePair, <a href="../../../../../org/apache/juneau/http/header/Headerable.html" title="interface in org.apache.juneau.http.header">Headerable</a></dd>
</dl>
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><a href="../../../../../org/apache/juneau/http/part/BasicBooleanPart.html" title="class in org.apache.juneau.http.part">BasicBooleanPart</a>, <a href="../../../../../org/apache/juneau/http/part/BasicCsvArrayPart.html" title="class in org.apache.juneau.http.part">BasicCsvArrayPart</a>, <a href="../../../../../org/apache/juneau/http/part/BasicDatePart.html" title="class in org.apache.juneau.http.part">BasicDatePart</a>, <a href="../../../../../org/apache/juneau/http/part/BasicIntegerPart.html" title="class in org.apache.juneau.http.part">BasicIntegerPart</a>, <a href="../../../../../org/apache/juneau/http/part/BasicLongPart.html" title="class in org.apache.juneau.http.part">BasicLongPart</a>, <a href="../../../../../org/apache/juneau/http/part/BasicStringPart.html" title="class in org.apache.juneau.http.part">BasicStringPart</a>, <a href="../../../../../org/apache/juneau/http/part/BasicUriPart.html" title="class in org.apache.juneau.http.part">BasicUriPart</a>, <a href="../../../../../org/apache/juneau/http/part/SerializedPart.html" title="class in org.apache.juneau.http.part">SerializedPart</a></dd>
</dl>
<hr>
<br>
<pre><a href="../../../../../org/apache/juneau/annotation/BeanIgnore.html" title="annotation in org.apache.juneau.annotation">@BeanIgnore</a>
public class <a href="../../../../../src-html/org/apache/juneau/http/part/BasicPart.html#line.52">BasicPart</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 org.apache.http.NameValuePair, <a href="../../../../../org/apache/juneau/http/header/Headerable.html" title="interface in org.apache.juneau.http.header">Headerable</a></pre>
<div class="block">Implementation of <code>NameValuePair</code> for serializing POJOs as URL-encoded form post entries.
Provides the following features:
<ul class='spaced-list'>
<li>
Values from <a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Supplier.html?is-external=true" title="class or interface in java.util.function"><code>Suppliers</code></a>.
<li>
Caching.
<li>
Fluent setters.
<li>
Fluent assertions.
</ul>
<ul class='seealso'>
<li class='link'><a class='doclink' href='../../../../../overview-summary.html#juneau-marshall.jm.HttpParts'>Overview &gt; juneau-marshall &gt; HTTP Parts</a>
<li class='extlink'><a class='doclink' target='_blank' href='https://github.com/apache/juneau/blob/master/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/http/part/BasicPart.java'>Source</a>
</ul></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="colFirst" scope="col">Modifier</th>
<th class="colLast" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/http/part/BasicPart.html#BasicPart-org.apache.juneau.http.part.BasicPart-">BasicPart</a></span>(<a href="../../../../../org/apache/juneau/http/part/BasicPart.html" title="class in org.apache.juneau.http.part">BasicPart</a>&nbsp;copyFrom)</code>
<div class="block">Copy constructor.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/http/part/BasicPart.html#BasicPart-java.lang.String-java.lang.Object-">BasicPart</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;name,
<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>&nbsp;value)</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="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></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><a href="../../../../../org/apache/juneau/http/header/BasicHeader.html" title="class in org.apache.juneau.http.header">BasicHeader</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/http/part/BasicPart.html#asHeader--">asHeader</a></span>()</code>
<div class="block">Convert the object to a <code>Header</code>.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/assertions/FluentStringAssertion.html" title="class in org.apache.juneau.assertions">FluentStringAssertion</a>&lt;<a href="../../../../../org/apache/juneau/http/part/BasicPart.html" title="class in org.apache.juneau.http.part">BasicPart</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/http/part/BasicPart.html#assertName--">assertName</a></span>()</code>
<div class="block">Provides an object for performing assertions against the name of this pair.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/juneau/assertions/FluentStringAssertion.html" title="class in org.apache.juneau.assertions">FluentStringAssertion</a>&lt;<a href="../../../../../org/apache/juneau/http/part/BasicPart.html" title="class in org.apache.juneau.http.part">BasicPart</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/http/part/BasicPart.html#assertValue--">assertValue</a></span>()</code>
<div class="block">Provides an object for performing assertions against the value of this pair.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/http/part/BasicPart.html#canCast-java.lang.Object-">canCast</a></span>(<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>&nbsp;o)</code>
<div class="block">Returns <jk>true</jk> if the <a href="../../../../../org/apache/juneau/http/part/BasicPart.html#cast-java.lang.Object-"><code>cast(Object)</code></a> method can be used on the specified object.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>static org.apache.http.NameValuePair</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/http/part/BasicPart.html#cast-java.lang.Object-">cast</a></span>(<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>&nbsp;o)</code>
<div class="block">Utility method for converting an arbitrary object to a <code>NameValuePair</code>.</div>
</td>
</tr>
<tr id="i5" 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/http/part/BasicPart.html#getName--">getName</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><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></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/http/part/BasicPart.html#getRawValue--">getRawValue</a></span>()</code>
<div class="block">Returns the raw value of the part.</div>
</td>
</tr>
<tr id="i7" 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/http/part/BasicPart.html#getValue--">getValue</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/juneau/http/part/BasicPart.html" title="class in org.apache.juneau.http.part">BasicPart</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/http/part/BasicPart.html#of-java.lang.String-java.lang.Object-">of</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;name,
<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>&nbsp;value)</code>
<div class="block">Static creator.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/juneau/http/part/BasicPart.html" title="class in org.apache.juneau.http.part">BasicPart</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/juneau/http/part/BasicPart.html#ofPair-java.lang.String-">ofPair</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;pair)</code>
<div class="block">Creates a <code>NameValuePair</code> from a name/value pair string (e.g.</div>
</td>
</tr>
<tr id="i10" 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/http/part/BasicPart.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="BasicPart-java.lang.String-java.lang.Object-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>BasicPart</h4>
<pre>public&nbsp;<a href="../../../../../src-html/org/apache/juneau/http/part/BasicPart.html#line.129">BasicPart</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;name,
<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>&nbsp;value)</pre>
<div class="block">Constructor.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>name</code> - The part name.</dd>
<dd><code>value</code> - The POJO to serialize to The part value.</dd>
</dl>
</li>
</ul>
<a name="BasicPart-org.apache.juneau.http.part.BasicPart-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>BasicPart</h4>
<pre>protected&nbsp;<a href="../../../../../src-html/org/apache/juneau/http/part/BasicPart.html#line.139">BasicPart</a>(<a href="../../../../../org/apache/juneau/http/part/BasicPart.html" title="class in org.apache.juneau.http.part">BasicPart</a>&nbsp;copyFrom)</pre>
<div class="block">Copy constructor.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>copyFrom</code> - The object to copy.</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="of-java.lang.String-java.lang.Object-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>of</h4>
<pre>public static&nbsp;<a href="../../../../../org/apache/juneau/http/part/BasicPart.html" title="class in org.apache.juneau.http.part">BasicPart</a>&nbsp;<a href="../../../../../src-html/org/apache/juneau/http/part/BasicPart.html#line.63">of</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;name,
<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>&nbsp;value)</pre>
<div class="block">Static creator.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>name</code> - The part name.</dd>
<dd><code>value</code> - The part value.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>A new <a href="../../../../../org/apache/juneau/http/part/BasicPart.html" title="class in org.apache.juneau.http.part"><code>BasicPart</code></a> object.</dd>
</dl>
</li>
</ul>
<a name="ofPair-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ofPair</h4>
<pre>public static&nbsp;<a href="../../../../../org/apache/juneau/http/part/BasicPart.html" title="class in org.apache.juneau.http.part">BasicPart</a>&nbsp;<a href="../../../../../src-html/org/apache/juneau/http/part/BasicPart.html#line.73">ofPair</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;pair)</pre>
<div class="block">Creates a <code>NameValuePair</code> from a name/value pair string (e.g. <js>"Foo: bar"</js>)</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>pair</code> - The pair string.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>A new <code>NameValuePair</code> object.</dd>
</dl>
</li>
</ul>
<a name="cast-java.lang.Object-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>cast</h4>
<pre>public static&nbsp;org.apache.http.NameValuePair&nbsp;<a href="../../../../../src-html/org/apache/juneau/http/part/BasicPart.html#line.92">cast</a>(<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>&nbsp;o)</pre>
<div class="block">Utility method for converting an arbitrary object to a <code>NameValuePair</code>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>o</code> - The object to cast or convert to a <code>NameValuePair</code>.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Either the same object cast as a <code>NameValuePair</code> or converted to a <code>NameValuePair</code>.</dd>
</dl>
</li>
</ul>
<a name="canCast-java.lang.Object-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>canCast</h4>
<pre>public static&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/juneau/http/part/BasicPart.html#line.118">canCast</a>(<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>&nbsp;o)</pre>
<div class="block">Returns <jk>true</jk> if the <a href="../../../../../org/apache/juneau/http/part/BasicPart.html#cast-java.lang.Object-"><code>cast(Object)</code></a> method can be used on the specified object.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>o</code> - The object to check.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><jk>true</jk> if the <a href="../../../../../org/apache/juneau/http/part/BasicPart.html#cast-java.lang.Object-"><code>cast(Object)</code></a> method can be used on the specified object.</dd>
</dl>
</li>
</ul>
<a name="assertName--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>assertName</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/juneau/assertions/FluentStringAssertion.html" title="class in org.apache.juneau.assertions">FluentStringAssertion</a>&lt;<a href="../../../../../org/apache/juneau/http/part/BasicPart.html" title="class in org.apache.juneau.http.part">BasicPart</a>&gt;&nbsp;<a href="../../../../../src-html/org/apache/juneau/http/part/BasicPart.html#line.150">assertName</a>()</pre>
<div class="block">Provides an object for performing assertions against the name of this pair.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>An object for performing assertions against the name of this pair.</dd>
</dl>
</li>
</ul>
<a name="assertValue--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>assertValue</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/juneau/assertions/FluentStringAssertion.html" title="class in org.apache.juneau.assertions">FluentStringAssertion</a>&lt;<a href="../../../../../org/apache/juneau/http/part/BasicPart.html" title="class in org.apache.juneau.http.part">BasicPart</a>&gt;&nbsp;<a href="../../../../../src-html/org/apache/juneau/http/part/BasicPart.html#line.159">assertValue</a>()</pre>
<div class="block">Provides an object for performing assertions against the value of this pair.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>An object for performing assertions against the value of this pair.</dd>
</dl>
</li>
</ul>
<a name="asHeader--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>asHeader</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/juneau/http/header/BasicHeader.html" title="class in org.apache.juneau.http.header">BasicHeader</a>&nbsp;<a href="../../../../../src-html/org/apache/juneau/http/part/BasicPart.html#line.164">asHeader</a>()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/juneau/http/header/Headerable.html#asHeader--">Headerable</a></code></span></div>
<div class="block">Convert the object to a <code>Header</code>.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/juneau/http/header/Headerable.html#asHeader--">asHeader</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/juneau/http/header/Headerable.html" title="interface in org.apache.juneau.http.header">Headerable</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The object converted to a <code>Header</code>.</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/http/part/BasicPart.html#line.169">getName</a>()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>getName</code>&nbsp;in interface&nbsp;<code>org.apache.http.NameValuePair</code></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/http/part/BasicPart.html#line.174">getValue</a>()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>getValue</code>&nbsp;in interface&nbsp;<code>org.apache.http.NameValuePair</code></dd>
</dl>
</li>
</ul>
<a name="getRawValue--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRawValue</h4>
<pre>public&nbsp;<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>&nbsp;<a href="../../../../../src-html/org/apache/juneau/http/part/BasicPart.html#line.183">getRawValue</a>()</pre>
<div class="block">Returns the raw value of the part.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The raw value of the part.</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/http/part/BasicPart.html#line.188">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/http/part/BasicLongPart.html" title="class in org.apache.juneau.http.part"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../org/apache/juneau/http/part/BasicPartIterator.html" title="class in org.apache.juneau.http.part"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/juneau/http/part/BasicPart.html" target="_top">Frames</a></li>
<li><a href="BasicPart.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;2022 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</body>
</html>