source: branches/objectmq_old/lib/rabbitmq-java-client-javadoc-3.0.1/com/rabbitmq/client/impl/AMQCommand.html

Last change on this file was 9, checked in by stoda, 12 years ago

First commit

File size: 21.6 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<!--NewPage-->
3<HTML>
4<HEAD>
5<!-- Generated by javadoc (build 1.6.0_18) on Tue Dec 11 11:47:10 GMT 2012 -->
6<TITLE>
7AMQCommand
8</TITLE>
9
10<META NAME="date" CONTENT="2012-12-11">
11
12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
13
14<SCRIPT type="text/javascript">
15function windowTitle()
16{
17    if (location.href.indexOf('is-external=true') == -1) {
18        parent.document.title="AMQCommand";
19    }
20}
21</SCRIPT>
22<NOSCRIPT>
23</NOSCRIPT>
24
25</HEAD>
26
27<BODY BGCOLOR="white" onload="windowTitle();">
28<HR>
29
30
31<!-- ========= START OF TOP NAVBAR ======= -->
32<A NAME="navbar_top"><!-- --></A>
33<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
34<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
35<TR>
36<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
37<A NAME="navbar_top_firstrow"><!-- --></A>
38<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
39  <TR ALIGN="center" VALIGN="top">
40  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
41  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
42  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
43  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
44  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
45  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
46  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
47  </TR>
48</TABLE>
49</TD>
50<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
51</EM>
52</TD>
53</TR>
54
55<TR>
56<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
57&nbsp;<A HREF="../../../../com/rabbitmq/client/impl/AMQChannel.SimpleBlockingRpcContinuation.html" title="class in com.rabbitmq.client.impl"><B>PREV CLASS</B></A>&nbsp;
58&nbsp;<A HREF="../../../../com/rabbitmq/client/impl/AMQConnection.html" title="class in com.rabbitmq.client.impl"><B>NEXT CLASS</B></A></FONT></TD>
59<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
60  <A HREF="../../../../index.html?com/rabbitmq/client/impl/AMQCommand.html" target="_top"><B>FRAMES</B></A>  &nbsp;
61&nbsp;<A HREF="AMQCommand.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
62&nbsp;<SCRIPT type="text/javascript">
63  <!--
64  if(window==top) {
65    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
66  }
67  //-->
68</SCRIPT>
69<NOSCRIPT>
70  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
71</NOSCRIPT>
72
73
74</FONT></TD>
75</TR>
76<TR>
77<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
78  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
79<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
80DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
81</TR>
82</TABLE>
83<A NAME="skip-navbar_top"></A>
84<!-- ========= END OF TOP NAVBAR ========= -->
85
86<HR>
87<!-- ======== START OF CLASS DATA ======== -->
88<H2>
89<FONT SIZE="-1">
90com.rabbitmq.client.impl</FONT>
91<BR>
92Class AMQCommand</H2>
93<PRE>
94java.lang.Object
95  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.rabbitmq.client.impl.AMQCommand</B>
96</PRE>
97<DL>
98<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../com/rabbitmq/client/Command.html" title="interface in com.rabbitmq.client">Command</A></DD>
99</DL>
100<HR>
101<DL>
102<DT><PRE>public class <B>AMQCommand</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../../com/rabbitmq/client/Command.html" title="interface in com.rabbitmq.client">Command</A></DL>
103</PRE>
104
105<P>
106AMQ-specific implementation of <A HREF="../../../../com/rabbitmq/client/Command.html" title="interface in com.rabbitmq.client"><CODE>Command</CODE></A> which accumulates
107 method, header and body from a series of frames, unless these are
108 supplied at construction time.
109 <p/><b>Concurrency</b><br/>
110 This class is thread-safe.
111<P>
112
113<P>
114<HR>
115
116<P>
117<!-- =========== FIELD SUMMARY =========== -->
118
119<A NAME="field_summary"><!-- --></A>
120<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
121<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
122<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
123<B>Field Summary</B></FONT></TH>
124</TR>
125<TR BGCOLOR="white" CLASS="TableRowColor">
126<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
127<CODE>static&nbsp;int</CODE></FONT></TD>
128<TD><CODE><B><A HREF="../../../../com/rabbitmq/client/impl/AMQCommand.html#EMPTY_FRAME_SIZE">EMPTY_FRAME_SIZE</A></B></CODE>
129
130<BR>
131&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;EMPTY_FRAME_SIZE = 8 = 1 + 2 + 4 + 1
132 1 byte of frame type
133 2 bytes of channel number
134 4 bytes of frame payload length
135 1 byte of payload trailer FRAME_END byte
136 See <A HREF="../../../../com/rabbitmq/client/impl/AMQCommand.html#checkEmptyFrameSize()"><CODE>checkEmptyFrameSize()</CODE></A>, an assertion checked at
137 startup.</TD>
138</TR>
139</TABLE>
140&nbsp;
141<!-- ======== CONSTRUCTOR SUMMARY ======== -->
142
143<A NAME="constructor_summary"><!-- --></A>
144<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
145<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
146<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
147<B>Constructor Summary</B></FONT></TH>
148</TR>
149<TR BGCOLOR="white" CLASS="TableRowColor">
150<TD><CODE><B><A HREF="../../../../com/rabbitmq/client/impl/AMQCommand.html#AMQCommand()">AMQCommand</A></B>()</CODE>
151
152<BR>
153&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Construct a command ready to fill in by reading frames</TD>
154</TR>
155<TR BGCOLOR="white" CLASS="TableRowColor">
156<TD><CODE><B><A HREF="../../../../com/rabbitmq/client/impl/AMQCommand.html#AMQCommand(com.rabbitmq.client.Method)">AMQCommand</A></B>(<A HREF="../../../../com/rabbitmq/client/Method.html" title="interface in com.rabbitmq.client">Method</A>&nbsp;method)</CODE>
157
158<BR>
159&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Construct a command with just a method, and without header or body.</TD>
160</TR>
161<TR BGCOLOR="white" CLASS="TableRowColor">
162<TD><CODE><B><A HREF="../../../../com/rabbitmq/client/impl/AMQCommand.html#AMQCommand(com.rabbitmq.client.Method, com.rabbitmq.client.impl.AMQContentHeader, byte[])">AMQCommand</A></B>(<A HREF="../../../../com/rabbitmq/client/Method.html" title="interface in com.rabbitmq.client">Method</A>&nbsp;method,
163           <A HREF="../../../../com/rabbitmq/client/impl/AMQContentHeader.html" title="class in com.rabbitmq.client.impl">AMQContentHeader</A>&nbsp;contentHeader,
164           byte[]&nbsp;body)</CODE>
165
166<BR>
167&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Construct a command with a specified method, header and body.</TD>
168</TR>
169</TABLE>
170&nbsp;
171<!-- ========== METHOD SUMMARY =========== -->
172
173<A NAME="method_summary"><!-- --></A>
174<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
175<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
176<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
177<B>Method Summary</B></FONT></TH>
178</TR>
179<TR BGCOLOR="white" CLASS="TableRowColor">
180<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
181<CODE>static&nbsp;void</CODE></FONT></TD>
182<TD><CODE><B><A HREF="../../../../com/rabbitmq/client/impl/AMQCommand.html#checkPreconditions()">checkPreconditions</A></B>()</CODE>
183
184<BR>
185&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called to check internal code assumptions.</TD>
186</TR>
187<TR BGCOLOR="white" CLASS="TableRowColor">
188<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
189<CODE>&nbsp;byte[]</CODE></FONT></TD>
190<TD><CODE><B><A HREF="../../../../com/rabbitmq/client/impl/AMQCommand.html#getContentBody()">getContentBody</A></B>()</CODE>
191
192<BR>
193&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Public API - Retrieves the body byte array that travelled as part of this
194 Command, if any.</TD>
195</TR>
196<TR BGCOLOR="white" CLASS="TableRowColor">
197<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
198<CODE>&nbsp;<A HREF="../../../../com/rabbitmq/client/impl/AMQContentHeader.html" title="class in com.rabbitmq.client.impl">AMQContentHeader</A></CODE></FONT></TD>
199<TD><CODE><B><A HREF="../../../../com/rabbitmq/client/impl/AMQCommand.html#getContentHeader()">getContentHeader</A></B>()</CODE>
200
201<BR>
202&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Public API - Retrieves the ContentHeader subclass instance held as part of this Command, if any.</TD>
203</TR>
204<TR BGCOLOR="white" CLASS="TableRowColor">
205<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
206<CODE>&nbsp;<A HREF="../../../../com/rabbitmq/client/impl/Method.html" title="class in com.rabbitmq.client.impl">Method</A></CODE></FONT></TD>
207<TD><CODE><B><A HREF="../../../../com/rabbitmq/client/impl/AMQCommand.html#getMethod()">getMethod</A></B>()</CODE>
208
209<BR>
210&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Public API - Retrieves the <A HREF="../../../../com/rabbitmq/client/Method.html" title="interface in com.rabbitmq.client"><CODE>Method</CODE></A> held within this Command.</TD>
211</TR>
212<TR BGCOLOR="white" CLASS="TableRowColor">
213<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
214<CODE>&nbsp;boolean</CODE></FONT></TD>
215<TD><CODE><B><A HREF="../../../../com/rabbitmq/client/impl/AMQCommand.html#handleFrame(com.rabbitmq.client.impl.Frame)">handleFrame</A></B>(<A HREF="../../../../com/rabbitmq/client/impl/Frame.html" title="class in com.rabbitmq.client.impl">Frame</A>&nbsp;f)</CODE>
216
217<BR>
218&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
219</TR>
220<TR BGCOLOR="white" CLASS="TableRowColor">
221<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
222<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
223<TD><CODE><B><A HREF="../../../../com/rabbitmq/client/impl/AMQCommand.html#toString()">toString</A></B>()</CODE>
224
225<BR>
226&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
227</TR>
228<TR BGCOLOR="white" CLASS="TableRowColor">
229<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
230<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
231<TD><CODE><B><A HREF="../../../../com/rabbitmq/client/impl/AMQCommand.html#toString(boolean)">toString</A></B>(boolean&nbsp;suppressBody)</CODE>
232
233<BR>
234&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
235</TR>
236<TR BGCOLOR="white" CLASS="TableRowColor">
237<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
238<CODE>&nbsp;void</CODE></FONT></TD>
239<TD><CODE><B><A HREF="../../../../com/rabbitmq/client/impl/AMQCommand.html#transmit(com.rabbitmq.client.impl.AMQChannel)">transmit</A></B>(<A HREF="../../../../com/rabbitmq/client/impl/AMQChannel.html" title="class in com.rabbitmq.client.impl">AMQChannel</A>&nbsp;channel)</CODE>
240
241<BR>
242&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sends this command down the named channel on the channel's
243 connection, possibly in multiple frames.</TD>
244</TR>
245</TABLE>
246&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
247<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
248<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
249<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
250</TR>
251<TR BGCOLOR="white" CLASS="TableRowColor">
252<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
253</TR>
254</TABLE>
255&nbsp;
256<P>
257
258<!-- ============ FIELD DETAIL =========== -->
259
260<A NAME="field_detail"><!-- --></A>
261<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
262<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
263<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
264<B>Field Detail</B></FONT></TH>
265</TR>
266</TABLE>
267
268<A NAME="EMPTY_FRAME_SIZE"><!-- --></A><H3>
269EMPTY_FRAME_SIZE</H3>
270<PRE>
271public static final int <B>EMPTY_FRAME_SIZE</B></PRE>
272<DL>
273<DD>EMPTY_FRAME_SIZE = 8 = 1 + 2 + 4 + 1
274 <ul><li>1 byte of frame type</li>
275 <li>2 bytes of channel number</li>
276 <li>4 bytes of frame payload length</li>
277 <li>1 byte of payload trailer FRAME_END byte</li></ul>
278 See <A HREF="../../../../com/rabbitmq/client/impl/AMQCommand.html#checkEmptyFrameSize()"><CODE>checkEmptyFrameSize()</CODE></A>, an assertion checked at
279 startup.
280<P>
281<DL>
282<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.rabbitmq.client.impl.AMQCommand.EMPTY_FRAME_SIZE">Constant Field Values</A></DL>
283</DL>
284
285<!-- ========= CONSTRUCTOR DETAIL ======== -->
286
287<A NAME="constructor_detail"><!-- --></A>
288<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
289<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
290<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
291<B>Constructor Detail</B></FONT></TH>
292</TR>
293</TABLE>
294
295<A NAME="AMQCommand()"><!-- --></A><H3>
296AMQCommand</H3>
297<PRE>
298public <B>AMQCommand</B>()</PRE>
299<DL>
300<DD>Construct a command ready to fill in by reading frames
301<P>
302</DL>
303<HR>
304
305<A NAME="AMQCommand(com.rabbitmq.client.Method)"><!-- --></A><H3>
306AMQCommand</H3>
307<PRE>
308public <B>AMQCommand</B>(<A HREF="../../../../com/rabbitmq/client/Method.html" title="interface in com.rabbitmq.client">Method</A>&nbsp;method)</PRE>
309<DL>
310<DD>Construct a command with just a method, and without header or body.
311<P>
312<DL>
313<DT><B>Parameters:</B><DD><CODE>method</CODE> - the wrapped method</DL>
314</DL>
315<HR>
316
317<A NAME="AMQCommand(com.rabbitmq.client.Method, com.rabbitmq.client.impl.AMQContentHeader, byte[])"><!-- --></A><H3>
318AMQCommand</H3>
319<PRE>
320public <B>AMQCommand</B>(<A HREF="../../../../com/rabbitmq/client/Method.html" title="interface in com.rabbitmq.client">Method</A>&nbsp;method,
321                  <A HREF="../../../../com/rabbitmq/client/impl/AMQContentHeader.html" title="class in com.rabbitmq.client.impl">AMQContentHeader</A>&nbsp;contentHeader,
322                  byte[]&nbsp;body)</PRE>
323<DL>
324<DD>Construct a command with a specified method, header and body.
325<P>
326<DL>
327<DT><B>Parameters:</B><DD><CODE>method</CODE> - the wrapped method<DD><CODE>contentHeader</CODE> - the wrapped content header<DD><CODE>body</CODE> - the message body data</DL>
328</DL>
329
330<!-- ============ METHOD DETAIL ========== -->
331
332<A NAME="method_detail"><!-- --></A>
333<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
334<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
335<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
336<B>Method Detail</B></FONT></TH>
337</TR>
338</TABLE>
339
340<A NAME="getMethod()"><!-- --></A><H3>
341getMethod</H3>
342<PRE>
343public <A HREF="../../../../com/rabbitmq/client/impl/Method.html" title="class in com.rabbitmq.client.impl">Method</A> <B>getMethod</B>()</PRE>
344<DL>
345<DD>Public API - Retrieves the <A HREF="../../../../com/rabbitmq/client/Method.html" title="interface in com.rabbitmq.client"><CODE>Method</CODE></A> held within this Command. Downcast to
346 concrete (implementation-specific!) subclasses as necessary.
347<P>
348<DD><DL>
349<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/rabbitmq/client/Command.html#getMethod()">getMethod</A></CODE> in interface <CODE><A HREF="../../../../com/rabbitmq/client/Command.html" title="interface in com.rabbitmq.client">Command</A></CODE></DL>
350</DD>
351<DD><DL>
352
353<DT><B>Returns:</B><DD>the command's method.</DL>
354</DD>
355</DL>
356<HR>
357
358<A NAME="getContentHeader()"><!-- --></A><H3>
359getContentHeader</H3>
360<PRE>
361public <A HREF="../../../../com/rabbitmq/client/impl/AMQContentHeader.html" title="class in com.rabbitmq.client.impl">AMQContentHeader</A> <B>getContentHeader</B>()</PRE>
362<DL>
363<DD>Public API - Retrieves the ContentHeader subclass instance held as part of this Command, if any.
364
365 Downcast to one of the inner classes of AMQP,
366 for instance <A HREF="../../../../com/rabbitmq/client/AMQP.BasicProperties.html" title="class in com.rabbitmq.client"><CODE>AMQP.BasicProperties</CODE></A>, as appropriate.
367<P>
368<DD><DL>
369<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/rabbitmq/client/Command.html#getContentHeader()">getContentHeader</A></CODE> in interface <CODE><A HREF="../../../../com/rabbitmq/client/Command.html" title="interface in com.rabbitmq.client">Command</A></CODE></DL>
370</DD>
371<DD><DL>
372
373<DT><B>Returns:</B><DD>the Command's <A HREF="../../../../com/rabbitmq/client/ContentHeader.html" title="interface in com.rabbitmq.client"><CODE>ContentHeader</CODE></A>, or null if none</DL>
374</DD>
375</DL>
376<HR>
377
378<A NAME="getContentBody()"><!-- --></A><H3>
379getContentBody</H3>
380<PRE>
381public byte[] <B>getContentBody</B>()</PRE>
382<DL>
383<DD>Public API - Retrieves the body byte array that travelled as part of this
384 Command, if any.
385<P>
386<DD><DL>
387<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/rabbitmq/client/Command.html#getContentBody()">getContentBody</A></CODE> in interface <CODE><A HREF="../../../../com/rabbitmq/client/Command.html" title="interface in com.rabbitmq.client">Command</A></CODE></DL>
388</DD>
389<DD><DL>
390
391<DT><B>Returns:</B><DD>the Command's content body, or null if none</DL>
392</DD>
393</DL>
394<HR>
395
396<A NAME="handleFrame(com.rabbitmq.client.impl.Frame)"><!-- --></A><H3>
397handleFrame</H3>
398<PRE>
399public boolean <B>handleFrame</B>(<A HREF="../../../../com/rabbitmq/client/impl/Frame.html" title="class in com.rabbitmq.client.impl">Frame</A>&nbsp;f)
400                    throws java.io.IOException</PRE>
401<DL>
402<DD><DL>
403</DL>
404</DD>
405<DD><DL>
406
407<DT><B>Throws:</B>
408<DD><CODE>java.io.IOException</CODE></DL>
409</DD>
410</DL>
411<HR>
412
413<A NAME="transmit(com.rabbitmq.client.impl.AMQChannel)"><!-- --></A><H3>
414transmit</H3>
415<PRE>
416public void <B>transmit</B>(<A HREF="../../../../com/rabbitmq/client/impl/AMQChannel.html" title="class in com.rabbitmq.client.impl">AMQChannel</A>&nbsp;channel)
417              throws java.io.IOException</PRE>
418<DL>
419<DD>Sends this command down the named channel on the channel's
420 connection, possibly in multiple frames.
421<P>
422<DD><DL>
423</DL>
424</DD>
425<DD><DL>
426<DT><B>Parameters:</B><DD><CODE>channel</CODE> - the channel on which to transmit the command
427<DT><B>Throws:</B>
428<DD><CODE>java.io.IOException</CODE> - if an error is encountered</DL>
429</DD>
430</DL>
431<HR>
432
433<A NAME="toString()"><!-- --></A><H3>
434toString</H3>
435<PRE>
436public java.lang.String <B>toString</B>()</PRE>
437<DL>
438<DD><DL>
439<DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
440</DD>
441<DD><DL>
442</DL>
443</DD>
444</DL>
445<HR>
446
447<A NAME="toString(boolean)"><!-- --></A><H3>
448toString</H3>
449<PRE>
450public java.lang.String <B>toString</B>(boolean&nbsp;suppressBody)</PRE>
451<DL>
452<DD><DL>
453</DL>
454</DD>
455<DD><DL>
456</DL>
457</DD>
458</DL>
459<HR>
460
461<A NAME="checkPreconditions()"><!-- --></A><H3>
462checkPreconditions</H3>
463<PRE>
464public static void <B>checkPreconditions</B>()</PRE>
465<DL>
466<DD>Called to check internal code assumptions.
467<P>
468<DD><DL>
469</DL>
470</DD>
471<DD><DL>
472</DL>
473</DD>
474</DL>
475<!-- ========= END OF CLASS DATA ========= -->
476<HR>
477
478
479<!-- ======= START OF BOTTOM NAVBAR ====== -->
480<A NAME="navbar_bottom"><!-- --></A>
481<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
482<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
483<TR>
484<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
485<A NAME="navbar_bottom_firstrow"><!-- --></A>
486<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
487  <TR ALIGN="center" VALIGN="top">
488  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
489  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
490  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
491  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
492  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
493  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
494  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
495  </TR>
496</TABLE>
497</TD>
498<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
499</EM>
500</TD>
501</TR>
502
503<TR>
504<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
505&nbsp;<A HREF="../../../../com/rabbitmq/client/impl/AMQChannel.SimpleBlockingRpcContinuation.html" title="class in com.rabbitmq.client.impl"><B>PREV CLASS</B></A>&nbsp;
506&nbsp;<A HREF="../../../../com/rabbitmq/client/impl/AMQConnection.html" title="class in com.rabbitmq.client.impl"><B>NEXT CLASS</B></A></FONT></TD>
507<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
508  <A HREF="../../../../index.html?com/rabbitmq/client/impl/AMQCommand.html" target="_top"><B>FRAMES</B></A>  &nbsp;
509&nbsp;<A HREF="AMQCommand.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
510&nbsp;<SCRIPT type="text/javascript">
511  <!--
512  if(window==top) {
513    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
514  }
515  //-->
516</SCRIPT>
517<NOSCRIPT>
518  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
519</NOSCRIPT>
520
521
522</FONT></TD>
523</TR>
524<TR>
525<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
526  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
527<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
528DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
529</TR>
530</TABLE>
531<A NAME="skip-navbar_bottom"></A>
532<!-- ======== END OF BOTTOM NAVBAR ======= -->
533
534<HR>
535
536</BODY>
537</HTML>
Note: See TracBrowser for help on using the repository browser.