| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <title>ClientRequestContext</title> |
| <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> |
| <script type="text/javascript" src="../../../../script.js"></script> |
| |
| <link rel="shortcut icon" href="/img/jakarta-favicon.ico"> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="ClientRequestContext"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":6,"i7":6,"i8":6,"i9":6,"i10":6,"i11":6,"i12":6,"i13":6,"i14":6,"i15":6,"i16":6,"i17":6,"i18":6,"i19":6,"i20":6,"i21":6,"i22":6,"i23":6,"i24":6,"i25":6,"i26":6,"i27":6,"i28":6}; |
| var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract 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="../../../../javax/ws/rs/client/ClientBuilder.html" title="class in javax.ws.rs.client"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../javax/ws/rs/client/ClientRequestFilter.html" title="interface in javax.ws.rs.client"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?javax/ws/rs/client/ClientRequestContext.html" target="_top">Frames</a></li> |
| <li><a href="ClientRequestContext.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../allclasses-noframe.html">All 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: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li>Constr | </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">javax.ws.rs.client</div> |
| <h2 title="Interface ClientRequestContext" class="title">Interface ClientRequestContext</h2> |
| </div> |
| <div class="contentContainer"> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <hr> |
| <br> |
| <pre>public interface <span class="typeNameLabel">ClientRequestContext</span></pre> |
| <div class="block">Client request filter context. |
| |
| A mutable class that provides request-specific information for the filter, |
| such as request URI, message headers, message entity or request-scoped |
| properties. The exposed setters allow modification of the exposed request-specific |
| information.</div> |
| <dl> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>2.0</dd> |
| <dt><span class="simpleTagLabel">Examples (en):</span></dt> |
| <dd><a href="../../../../../../../tomee-8.0/examples/security-tomcat-user-identitystore.html">security-tomcat-user-identitystore</a></dd> |
| </dl> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ========== 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"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd"> </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>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/ws/rs/client/ClientRequestContext.html#abortWith-javax.ws.rs.core.Response-">abortWith</a></span>(<a href="../../../../javax/ws/rs/core/Response.html" title="class in javax.ws.rs.core">Response</a> response)</code> |
| <div class="block">Abort the filter chain with a response.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>java.util.List<java.util.Locale></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/ws/rs/client/ClientRequestContext.html#getAcceptableLanguages--">getAcceptableLanguages</a></span>()</code> |
| <div class="block">Get a list of languages that are acceptable for the response.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>java.util.List<<a href="../../../../javax/ws/rs/core/MediaType.html" title="class in javax.ws.rs.core">MediaType</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/ws/rs/client/ClientRequestContext.html#getAcceptableMediaTypes--">getAcceptableMediaTypes</a></span>()</code> |
| <div class="block">Get a list of media types that are acceptable for the response.</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../javax/ws/rs/client/Client.html" title="interface in javax.ws.rs.client">Client</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/ws/rs/client/ClientRequestContext.html#getClient--">getClient</a></span>()</code> |
| <div class="block">Get the client instance associated with the request.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../javax/ws/rs/core/Configuration.html" title="interface in javax.ws.rs.core">Configuration</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/ws/rs/client/ClientRequestContext.html#getConfiguration--">getConfiguration</a></span>()</code> |
| <div class="block">Get the immutable configuration of the request.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>java.util.Map<java.lang.String,<a href="../../../../javax/ws/rs/core/Cookie.html" title="class in javax.ws.rs.core">Cookie</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/ws/rs/client/ClientRequestContext.html#getCookies--">getCookies</a></span>()</code> |
| <div class="block">Get any cookies that accompanied the request.</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>java.util.Date</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/ws/rs/client/ClientRequestContext.html#getDate--">getDate</a></span>()</code> |
| <div class="block">Get message date.</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>java.lang.Object</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/ws/rs/client/ClientRequestContext.html#getEntity--">getEntity</a></span>()</code> |
| <div class="block">Get the message entity Java instance.</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>java.lang.annotation.Annotation[]</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/ws/rs/client/ClientRequestContext.html#getEntityAnnotations--">getEntityAnnotations</a></span>()</code> |
| <div class="block">Get the annotations attached to the entity instance.</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>java.lang.Class<?></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/ws/rs/client/ClientRequestContext.html#getEntityClass--">getEntityClass</a></span>()</code> |
| <div class="block">Get the raw entity type information.</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>java.io.OutputStream</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/ws/rs/client/ClientRequestContext.html#getEntityStream--">getEntityStream</a></span>()</code> |
| <div class="block">Get the entity output stream.</div> |
| </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>java.lang.reflect.Type</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/ws/rs/client/ClientRequestContext.html#getEntityType--">getEntityType</a></span>()</code> |
| <div class="block">Get the generic entity type information.</div> |
| </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../javax/ws/rs/core/MultivaluedMap.html" title="interface in javax.ws.rs.core">MultivaluedMap</a><java.lang.String,java.lang.Object></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/ws/rs/client/ClientRequestContext.html#getHeaders--">getHeaders</a></span>()</code> |
| <div class="block">Get the mutable request headers multivalued map.</div> |
| </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <td class="colFirst"><code>java.lang.String</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/ws/rs/client/ClientRequestContext.html#getHeaderString-java.lang.String-">getHeaderString</a></span>(java.lang.String name)</code> |
| <div class="block">Get a message header as a single string value.</div> |
| </td> |
| </tr> |
| <tr id="i14" class="altColor"> |
| <td class="colFirst"><code>java.util.Locale</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/ws/rs/client/ClientRequestContext.html#getLanguage--">getLanguage</a></span>()</code> |
| <div class="block">Get the language of the entity.</div> |
| </td> |
| </tr> |
| <tr id="i15" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../javax/ws/rs/core/MediaType.html" title="class in javax.ws.rs.core">MediaType</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/ws/rs/client/ClientRequestContext.html#getMediaType--">getMediaType</a></span>()</code> |
| <div class="block">Get the media type of the entity.</div> |
| </td> |
| </tr> |
| <tr id="i16" class="altColor"> |
| <td class="colFirst"><code>java.lang.String</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/ws/rs/client/ClientRequestContext.html#getMethod--">getMethod</a></span>()</code> |
| <div class="block">Get the request method.</div> |
| </td> |
| </tr> |
| <tr id="i17" class="rowColor"> |
| <td class="colFirst"><code>java.lang.Object</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/ws/rs/client/ClientRequestContext.html#getProperty-java.lang.String-">getProperty</a></span>(java.lang.String name)</code> |
| <div class="block">Returns the property with the given name registered in the current request/response |
| exchange context, or <code>null</code> if there is no property by that name.</div> |
| </td> |
| </tr> |
| <tr id="i18" class="altColor"> |
| <td class="colFirst"><code>java.util.Collection<java.lang.String></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/ws/rs/client/ClientRequestContext.html#getPropertyNames--">getPropertyNames</a></span>()</code> |
| <div class="block">Returns an immutable <code>collection</code> containing the property names |
| available within the context of the current request/response exchange context.</div> |
| </td> |
| </tr> |
| <tr id="i19" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../javax/ws/rs/core/MultivaluedMap.html" title="interface in javax.ws.rs.core">MultivaluedMap</a><java.lang.String,java.lang.String></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/ws/rs/client/ClientRequestContext.html#getStringHeaders--">getStringHeaders</a></span>()</code> |
| <div class="block">Get a string view of header values associated with the message.</div> |
| </td> |
| </tr> |
| <tr id="i20" class="altColor"> |
| <td class="colFirst"><code>java.net.URI</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/ws/rs/client/ClientRequestContext.html#getUri--">getUri</a></span>()</code> |
| <div class="block">Get the request URI.</div> |
| </td> |
| </tr> |
| <tr id="i21" class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/ws/rs/client/ClientRequestContext.html#hasEntity--">hasEntity</a></span>()</code> |
| <div class="block">Check if there is an entity available in the request.</div> |
| </td> |
| </tr> |
| <tr id="i22" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/ws/rs/client/ClientRequestContext.html#removeProperty-java.lang.String-">removeProperty</a></span>(java.lang.String name)</code> |
| <div class="block">Removes a property with the given name from the current request/response |
| exchange context.</div> |
| </td> |
| </tr> |
| <tr id="i23" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/ws/rs/client/ClientRequestContext.html#setEntity-java.lang.Object-">setEntity</a></span>(java.lang.Object entity)</code> |
| <div class="block">Set a new message entity.</div> |
| </td> |
| </tr> |
| <tr id="i24" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/ws/rs/client/ClientRequestContext.html#setEntity-java.lang.Object-java.lang.annotation.Annotation:A-javax.ws.rs.core.MediaType-">setEntity</a></span>(java.lang.Object entity, |
| java.lang.annotation.Annotation[] annotations, |
| <a href="../../../../javax/ws/rs/core/MediaType.html" title="class in javax.ws.rs.core">MediaType</a> mediaType)</code> |
| <div class="block">Set a new message entity, including the attached annotations and the media type.</div> |
| </td> |
| </tr> |
| <tr id="i25" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/ws/rs/client/ClientRequestContext.html#setEntityStream-java.io.OutputStream-">setEntityStream</a></span>(java.io.OutputStream outputStream)</code> |
| <div class="block">Set a new entity output stream.</div> |
| </td> |
| </tr> |
| <tr id="i26" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/ws/rs/client/ClientRequestContext.html#setMethod-java.lang.String-">setMethod</a></span>(java.lang.String method)</code> |
| <div class="block">Set the request method.</div> |
| </td> |
| </tr> |
| <tr id="i27" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/ws/rs/client/ClientRequestContext.html#setProperty-java.lang.String-java.lang.Object-">setProperty</a></span>(java.lang.String name, |
| java.lang.Object object)</code> |
| <div class="block">Binds an object to a given property name in the current request/response |
| exchange context.</div> |
| </td> |
| </tr> |
| <tr id="i28" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/ws/rs/client/ClientRequestContext.html#setUri-java.net.URI-">setUri</a></span>(java.net.URI uri)</code> |
| <div class="block">Set a new request URI.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="getProperty-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getProperty</h4> |
| <pre>java.lang.Object getProperty(java.lang.String name)</pre> |
| <div class="block">Returns the property with the given name registered in the current request/response |
| exchange context, or <code>null</code> if there is no property by that name. |
| <p> |
| A property allows filters and interceptors to exchange |
| additional custom information not already provided by this interface. |
| </p> |
| <p> |
| A list of supported properties can be retrieved using <a href="../../../../javax/ws/rs/client/ClientRequestContext.html#getPropertyNames--"><code>getPropertyNames()</code></a>. |
| Custom property names should follow the same convention as package names. |
| </p></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>name</code> - a <code>String</code> specifying the name of the property.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>an <code>Object</code> containing the value of the property, or |
| <code>null</code> if no property exists matching the given name.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../javax/ws/rs/client/ClientRequestContext.html#getPropertyNames--"><code>getPropertyNames()</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getPropertyNames--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getPropertyNames</h4> |
| <pre>java.util.Collection<java.lang.String> getPropertyNames()</pre> |
| <div class="block">Returns an immutable <code>collection</code> containing the property names |
| available within the context of the current request/response exchange context. |
| <p> |
| Use the <a href="../../../../javax/ws/rs/client/ClientRequestContext.html#getProperty-java.lang.String-"><code>getProperty(java.lang.String)</code></a> method with a property name to get the value of |
| a property. |
| </p></div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>an immutable <code>collection</code> of property names.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../javax/ws/rs/client/ClientRequestContext.html#getProperty-java.lang.String-"><code>getProperty(java.lang.String)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setProperty-java.lang.String-java.lang.Object-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setProperty</h4> |
| <pre>void setProperty(java.lang.String name, |
| java.lang.Object object)</pre> |
| <div class="block">Binds an object to a given property name in the current request/response |
| exchange context. If the name specified is already used for a property, |
| this method will replace the value of the property with the new value. |
| <p> |
| A property allows a filters and interceptors to exchange |
| additional custom information not already provided by this interface. |
| </p> |
| <p> |
| A list of supported properties can be retrieved using <a href="../../../../javax/ws/rs/client/ClientRequestContext.html#getPropertyNames--"><code>getPropertyNames()</code></a>. |
| Custom property names should follow the same convention as package names. |
| </p> |
| <p> |
| If a <code>null</code> value is passed, the effect is the same as calling the |
| <a href="../../../../javax/ws/rs/client/ClientRequestContext.html#removeProperty-java.lang.String-"><code>removeProperty(String)</code></a> method. |
| </p></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>name</code> - a <code>String</code> specifying the name of the property.</dd> |
| <dd><code>object</code> - an <code>Object</code> representing the property to be bound.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="removeProperty-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>removeProperty</h4> |
| <pre>void removeProperty(java.lang.String name)</pre> |
| <div class="block">Removes a property with the given name from the current request/response |
| exchange context. After removal, subsequent calls to <a href="../../../../javax/ws/rs/client/ClientRequestContext.html#getProperty-java.lang.String-"><code>getProperty(java.lang.String)</code></a> |
| to retrieve the property value will return <code>null</code>.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>name</code> - a <code>String</code> specifying the name of the property to be removed.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getUri--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getUri</h4> |
| <pre>java.net.URI getUri()</pre> |
| <div class="block">Get the request URI.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>request URI.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setUri-java.net.URI-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setUri</h4> |
| <pre>void setUri(java.net.URI uri)</pre> |
| <div class="block">Set a new request URI.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>uri</code> - new request URI.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getMethod--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getMethod</h4> |
| <pre>java.lang.String getMethod()</pre> |
| <div class="block">Get the request method.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the request method.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../javax/ws/rs/HttpMethod.html" title="annotation in javax.ws.rs"><code>HttpMethod</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setMethod-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setMethod</h4> |
| <pre>void setMethod(java.lang.String method)</pre> |
| <div class="block">Set the request method.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>method</code> - new request method.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../javax/ws/rs/HttpMethod.html" title="annotation in javax.ws.rs"><code>HttpMethod</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getHeaders--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getHeaders</h4> |
| <pre><a href="../../../../javax/ws/rs/core/MultivaluedMap.html" title="interface in javax.ws.rs.core">MultivaluedMap</a><java.lang.String,java.lang.Object> getHeaders()</pre> |
| <div class="block">Get the mutable request headers multivalued map.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>mutable multivalued map of request headers.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../javax/ws/rs/client/ClientRequestContext.html#getStringHeaders--"><code>getStringHeaders()</code></a>, |
| <a href="../../../../javax/ws/rs/client/ClientRequestContext.html#getHeaderString-java.lang.String-"><code>getHeaderString(String)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getStringHeaders--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getStringHeaders</h4> |
| <pre><a href="../../../../javax/ws/rs/core/MultivaluedMap.html" title="interface in javax.ws.rs.core">MultivaluedMap</a><java.lang.String,java.lang.String> getStringHeaders()</pre> |
| <div class="block">Get a string view of header values associated with the message. |
| |
| Changes in the underlying <a href="../../../../javax/ws/rs/client/ClientRequestContext.html#getHeaders--"><code>headers map</code></a> are reflected |
| in this view. |
| <p> |
| The method converts the non-string header values to strings using a |
| <a href="../../../../javax/ws/rs/ext/RuntimeDelegate.HeaderDelegate.html" title="interface in javax.ws.rs.ext"><code>RuntimeDelegate.HeaderDelegate</code></a> if one is available via |
| <a href="../../../../javax/ws/rs/ext/RuntimeDelegate.html#createHeaderDelegate-java.lang.Class-"><code>RuntimeDelegate.createHeaderDelegate(java.lang.Class)</code></a> for the |
| class of the value or using the values <code>toString</code> method if a header delegate is |
| not available. |
| </p></div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>response headers as a string view of header values.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../javax/ws/rs/client/ClientRequestContext.html#getHeaders--"><code>getHeaders()</code></a>, |
| <a href="../../../../javax/ws/rs/client/ClientRequestContext.html#getHeaderString-java.lang.String-"><code>getHeaderString(String)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getHeaderString-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getHeaderString</h4> |
| <pre>java.lang.String getHeaderString(java.lang.String name)</pre> |
| <div class="block">Get a message header as a single string value. |
| |
| Each single header value is converted to String using a |
| <a href="../../../../javax/ws/rs/ext/RuntimeDelegate.HeaderDelegate.html" title="interface in javax.ws.rs.ext"><code>RuntimeDelegate.HeaderDelegate</code></a> if one is available |
| via <a href="../../../../javax/ws/rs/ext/RuntimeDelegate.html#createHeaderDelegate-java.lang.Class-"><code>RuntimeDelegate.createHeaderDelegate(java.lang.Class)</code></a> |
| for the header value class or using its <code>toString</code> method if a header |
| delegate is not available.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>name</code> - the message header.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the message header value. If the message header is not present then |
| <code>null</code> is returned. If the message header is present but has no |
| value then the empty string is returned. If the message header is present |
| more than once then the values of joined together and separated by a ',' |
| character.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../javax/ws/rs/client/ClientRequestContext.html#getHeaders--"><code>getHeaders()</code></a>, |
| <a href="../../../../javax/ws/rs/client/ClientRequestContext.html#getStringHeaders--"><code>getStringHeaders()</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getDate--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getDate</h4> |
| <pre>java.util.Date getDate()</pre> |
| <div class="block">Get message date.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the message date, otherwise <code>null</code> if not present.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getLanguage--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getLanguage</h4> |
| <pre>java.util.Locale getLanguage()</pre> |
| <div class="block">Get the language of the entity.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the language of the entity or <code>null</code> if not specified</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getMediaType--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getMediaType</h4> |
| <pre><a href="../../../../javax/ws/rs/core/MediaType.html" title="class in javax.ws.rs.core">MediaType</a> getMediaType()</pre> |
| <div class="block">Get the media type of the entity.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the media type or <code>null</code> if not specified (e.g. there's no |
| request entity).</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getAcceptableMediaTypes--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getAcceptableMediaTypes</h4> |
| <pre>java.util.List<<a href="../../../../javax/ws/rs/core/MediaType.html" title="class in javax.ws.rs.core">MediaType</a>> getAcceptableMediaTypes()</pre> |
| <div class="block">Get a list of media types that are acceptable for the response.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a read-only list of requested response media types sorted according |
| to their q-value, with highest preference first.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getAcceptableLanguages--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getAcceptableLanguages</h4> |
| <pre>java.util.List<java.util.Locale> getAcceptableLanguages()</pre> |
| <div class="block">Get a list of languages that are acceptable for the response.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a read-only list of acceptable languages sorted according |
| to their q-value, with highest preference first.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getCookies--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getCookies</h4> |
| <pre>java.util.Map<java.lang.String,<a href="../../../../javax/ws/rs/core/Cookie.html" title="class in javax.ws.rs.core">Cookie</a>> getCookies()</pre> |
| <div class="block">Get any cookies that accompanied the request.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a read-only map of cookie name (String) to <a href="../../../../javax/ws/rs/core/Cookie.html" title="class in javax.ws.rs.core"><code>Cookie</code></a>.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="hasEntity--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>hasEntity</h4> |
| <pre>boolean hasEntity()</pre> |
| <div class="block">Check if there is an entity available in the request. |
| |
| The method returns <code>true</code> if the entity is present, returns |
| <code>false</code> otherwise.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd><code>true</code> if there is an entity present in the message, |
| <code>false</code> otherwise.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getEntity--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getEntity</h4> |
| <pre>java.lang.Object getEntity()</pre> |
| <div class="block">Get the message entity Java instance. |
| |
| Returns <code>null</code> if the message does not contain an entity.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the message entity or <code>null</code> if message does not contain an |
| entity body.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getEntityClass--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getEntityClass</h4> |
| <pre>java.lang.Class<?> getEntityClass()</pre> |
| <div class="block">Get the raw entity type information.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>raw entity type.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getEntityType--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getEntityType</h4> |
| <pre>java.lang.reflect.Type getEntityType()</pre> |
| <div class="block">Get the generic entity type information.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>generic entity type.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setEntity-java.lang.Object-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setEntity</h4> |
| <pre>void setEntity(java.lang.Object entity)</pre> |
| <div class="block">Set a new message entity. The existing entity <a href="../../../../javax/ws/rs/client/ClientRequestContext.html#getEntityAnnotations--"><code>annotations</code></a> |
| and <a href="../../../../javax/ws/rs/client/ClientRequestContext.html#getMediaType--"><code>media type</code></a> are preserved. |
| <p> |
| It is the callers responsibility to wrap the actual entity with |
| <a href="../../../../javax/ws/rs/core/GenericEntity.html" title="class in javax.ws.rs.core"><code>GenericEntity</code></a> if preservation of its generic |
| type is required. |
| </p></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>entity</code> - entity object.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../javax/ws/rs/client/ClientRequestContext.html#setEntity-java.lang.Object-java.lang.annotation.Annotation:A-javax.ws.rs.core.MediaType-"><code>setEntity(Object, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType)</code></a>, |
| <a href="../../../../javax/ws/rs/ext/MessageBodyWriter.html" title="interface in javax.ws.rs.ext"><code>MessageBodyWriter</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setEntity-java.lang.Object-java.lang.annotation.Annotation:A-javax.ws.rs.core.MediaType-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setEntity</h4> |
| <pre>void setEntity(java.lang.Object entity, |
| java.lang.annotation.Annotation[] annotations, |
| <a href="../../../../javax/ws/rs/core/MediaType.html" title="class in javax.ws.rs.core">MediaType</a> mediaType)</pre> |
| <div class="block">Set a new message entity, including the attached annotations and the media type. |
| <p> |
| It is the callers responsibility to wrap the actual entity with |
| <a href="../../../../javax/ws/rs/core/GenericEntity.html" title="class in javax.ws.rs.core"><code>GenericEntity</code></a> if preservation of its generic |
| type is required. |
| </p></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>entity</code> - entity object.</dd> |
| <dd><code>annotations</code> - annotations attached to the entity instance.</dd> |
| <dd><code>mediaType</code> - entity media type.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../javax/ws/rs/client/ClientRequestContext.html#setEntity-java.lang.Object-"><code>setEntity(Object)</code></a>, |
| <a href="../../../../javax/ws/rs/ext/MessageBodyWriter.html" title="interface in javax.ws.rs.ext"><code>MessageBodyWriter</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getEntityAnnotations--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getEntityAnnotations</h4> |
| <pre>java.lang.annotation.Annotation[] getEntityAnnotations()</pre> |
| <div class="block">Get the annotations attached to the entity instance. |
| <p> |
| Note that the returned annotations array contains only those annotations |
| explicitly attached to entity instance (such as the ones attached using |
| <a href="../../../../javax/ws/rs/client/Entity.html#Entity-T-javax.ws.rs.core.MediaType-java.lang.annotation.Annotation:A-"><code>Entity.Entity(Object, javax.ws.rs.core.MediaType, java.lang.annotation.Annotation[])</code></a> method). |
| The entity instance annotations array does not include annotations declared on the entity |
| implementation class or its ancestors. |
| </p></div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>annotations attached to the entity instance.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getEntityStream--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getEntityStream</h4> |
| <pre>java.io.OutputStream getEntityStream()</pre> |
| <div class="block">Get the entity output stream. The runtime is responsible for |
| closing the output stream.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>entity output stream.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setEntityStream-java.io.OutputStream-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setEntityStream</h4> |
| <pre>void setEntityStream(java.io.OutputStream outputStream)</pre> |
| <div class="block">Set a new entity output stream. The runtime is responsible for |
| closing the output stream.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>outputStream</code> - new entity output stream.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getClient--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getClient</h4> |
| <pre><a href="../../../../javax/ws/rs/client/Client.html" title="interface in javax.ws.rs.client">Client</a> getClient()</pre> |
| <div class="block">Get the client instance associated with the request.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>client instance associated with the request.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getConfiguration--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getConfiguration</h4> |
| <pre><a href="../../../../javax/ws/rs/core/Configuration.html" title="interface in javax.ws.rs.core">Configuration</a> getConfiguration()</pre> |
| <div class="block">Get the immutable configuration of the request.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>immutable request configuration.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="abortWith-javax.ws.rs.core.Response-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>abortWith</h4> |
| <pre>void abortWith(<a href="../../../../javax/ws/rs/core/Response.html" title="class in javax.ws.rs.core">Response</a> response)</pre> |
| <div class="block">Abort the filter chain with a response. |
| |
| This method breaks the filter chain processing and returns the provided |
| response back to the client. The provided response goes through the |
| chain of applicable response filters.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>response</code> - response to be sent back to the client.</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="../../../../javax/ws/rs/client/ClientBuilder.html" title="class in javax.ws.rs.client"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../javax/ws/rs/client/ClientRequestFilter.html" title="interface in javax.ws.rs.client"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?javax/ws/rs/client/ClientRequestContext.html" target="_top">Frames</a></li> |
| <li><a href="ClientRequestContext.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../allclasses-noframe.html">All 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: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| </body> |
| </html> |