~testplan-team/testplan/source-collection

« back to all changes in this revision

Viewing changes to commons-httpclient-3.1/docs/apidocs/org/apache/commons/httpclient/methods/StringRequestEntity.html

  • Committer: edA-qa mort-ora-y
  • Date: 2009-01-28 15:36:51 UTC
  • Revision ID: eda-qa@disemia.com-20090128153651-u4uzd035zyjea16j
adding httpclient

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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.5.0_11) on Sat Aug 18 11:01:02 CEST 2007 -->
 
6
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
 
7
<TITLE>
 
8
StringRequestEntity (HttpClient 3.1 API)
 
9
</TITLE>
 
10
 
 
11
<META NAME="keywords" CONTENT="org.apache.commons.httpclient.methods.StringRequestEntity class">
 
12
 
 
13
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
 
14
 
 
15
<SCRIPT type="text/javascript">
 
16
function windowTitle()
 
17
{
 
18
    parent.document.title="StringRequestEntity (HttpClient 3.1 API)";
 
19
}
 
20
</SCRIPT>
 
21
<NOSCRIPT>
 
22
</NOSCRIPT>
 
23
 
 
24
</HEAD>
 
25
 
 
26
<BODY BGCOLOR="white" onload="windowTitle();">
 
27
 
 
28
 
 
29
<!-- ========= START OF TOP NAVBAR ======= -->
 
30
<A NAME="navbar_top"><!-- --></A>
 
31
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
 
32
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
 
33
<TR>
 
34
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
 
35
<A NAME="navbar_top_firstrow"><!-- --></A>
 
36
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
 
37
  <TR ALIGN="center" VALIGN="top">
 
38
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
 
39
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
 
40
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
 
41
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/StringRequestEntity.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
 
42
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
 
43
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
 
44
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
 
45
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
 
46
  </TR>
 
47
</TABLE>
 
48
</TD>
 
49
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
 
50
</EM>
 
51
</TD>
 
52
</TR>
 
53
 
 
54
<TR>
 
55
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 
56
&nbsp;<A HREF="../../../../../org/apache/commons/httpclient/methods/RequestEntity.html" title="interface in org.apache.commons.httpclient.methods"><B>PREV CLASS</B></A>&nbsp;
 
57
&nbsp;<A HREF="../../../../../org/apache/commons/httpclient/methods/TraceMethod.html" title="class in org.apache.commons.httpclient.methods"><B>NEXT CLASS</B></A></FONT></TD>
 
58
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 
59
  <A HREF="../../../../../index.html?org/apache/commons/httpclient/methods/StringRequestEntity.html" target="_top"><B>FRAMES</B></A>  &nbsp;
 
60
&nbsp;<A HREF="StringRequestEntity.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
 
61
&nbsp;<SCRIPT type="text/javascript">
 
62
  <!--
 
63
  if(window==top) {
 
64
    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
 
65
  }
 
66
  //-->
 
67
</SCRIPT>
 
68
<NOSCRIPT>
 
69
  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
 
70
</NOSCRIPT>
 
71
 
 
72
 
 
73
</FONT></TD>
 
74
</TR>
 
75
<TR>
 
76
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 
77
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
 
78
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 
79
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
 
80
</TR>
 
81
</TABLE>
 
82
<A NAME="skip-navbar_top"></A>
 
83
<!-- ========= END OF TOP NAVBAR ========= -->
 
84
 
 
85
<HR>
 
86
<!-- ======== START OF CLASS DATA ======== -->
 
87
<H2>
 
88
<FONT SIZE="-1">
 
89
org.apache.commons.httpclient.methods</FONT>
 
90
<BR>
 
91
Class StringRequestEntity</H2>
 
92
<PRE>
 
93
<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A>
 
94
  <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.commons.httpclient.methods.StringRequestEntity</B>
 
95
</PRE>
 
96
<DL>
 
97
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../org/apache/commons/httpclient/methods/RequestEntity.html" title="interface in org.apache.commons.httpclient.methods">RequestEntity</A></DD>
 
98
</DL>
 
99
<HR>
 
100
<DL>
 
101
<DT><PRE>public class <B>StringRequestEntity</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A><DT>implements <A HREF="../../../../../org/apache/commons/httpclient/methods/RequestEntity.html" title="interface in org.apache.commons.httpclient.methods">RequestEntity</A></DL>
 
102
</PRE>
 
103
 
 
104
<P>
 
105
A RequestEntity that contains a String.
 
106
<P>
 
107
 
 
108
<P>
 
109
<DL>
 
110
<DT><B>Since:</B></DT>
 
111
  <DD>3.0</DD>
 
112
</DL>
 
113
<HR>
 
114
 
 
115
<P>
 
116
 
 
117
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
 
118
 
 
119
<A NAME="constructor_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>Constructor Summary</B></FONT></TH>
 
124
</TR>
 
125
<TR BGCOLOR="white" CLASS="TableRowColor">
 
126
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/methods/StringRequestEntity.html#StringRequestEntity(java.lang.String)">StringRequestEntity</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;content)</CODE>
 
127
 
 
128
<BR>
 
129
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../../org/apache/commons/httpclient/methods/StringRequestEntity.html#StringRequestEntity(java.lang.String, java.lang.String, java.lang.String)"><CODE>StringRequestEntity(String, String, String)</CODE></A> instead</I></TD>
 
130
</TR>
 
131
<TR BGCOLOR="white" CLASS="TableRowColor">
 
132
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/methods/StringRequestEntity.html#StringRequestEntity(java.lang.String, java.lang.String, java.lang.String)">StringRequestEntity</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;content,
 
133
                    <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;contentType,
 
134
                    <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;charset)</CODE>
 
135
 
 
136
<BR>
 
137
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new entity with the given content, content type, and charset.</TD>
 
138
</TR>
 
139
</TABLE>
 
140
&nbsp;
 
141
<!-- ========== METHOD SUMMARY =========== -->
 
142
 
 
143
<A NAME="method_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>Method Summary</B></FONT></TH>
 
148
</TR>
 
149
<TR BGCOLOR="white" CLASS="TableRowColor">
 
150
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
151
<CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
 
152
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/methods/StringRequestEntity.html#getCharset()">getCharset</A></B>()</CODE>
 
153
 
 
154
<BR>
 
155
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
 
156
</TR>
 
157
<TR BGCOLOR="white" CLASS="TableRowColor">
 
158
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
159
<CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
 
160
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/methods/StringRequestEntity.html#getContent()">getContent</A></B>()</CODE>
 
161
 
 
162
<BR>
 
163
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
 
164
</TR>
 
165
<TR BGCOLOR="white" CLASS="TableRowColor">
 
166
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
167
<CODE>&nbsp;long</CODE></FONT></TD>
 
168
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/methods/StringRequestEntity.html#getContentLength()">getContentLength</A></B>()</CODE>
 
169
 
 
170
<BR>
 
171
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the request entity's length.</TD>
 
172
</TR>
 
173
<TR BGCOLOR="white" CLASS="TableRowColor">
 
174
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
175
<CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
 
176
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/methods/StringRequestEntity.html#getContentType()">getContentType</A></B>()</CODE>
 
177
 
 
178
<BR>
 
179
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the entity's content type.</TD>
 
180
</TR>
 
181
<TR BGCOLOR="white" CLASS="TableRowColor">
 
182
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
183
<CODE>&nbsp;boolean</CODE></FONT></TD>
 
184
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/methods/StringRequestEntity.html#isRepeatable()">isRepeatable</A></B>()</CODE>
 
185
 
 
186
<BR>
 
187
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tests if <A HREF="../../../../../org/apache/commons/httpclient/methods/RequestEntity.html#writeRequest(java.io.OutputStream)"><CODE>RequestEntity.writeRequest(OutputStream)</CODE></A> can be called more than once.</TD>
 
188
</TR>
 
189
<TR BGCOLOR="white" CLASS="TableRowColor">
 
190
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
191
<CODE>&nbsp;void</CODE></FONT></TD>
 
192
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/methods/StringRequestEntity.html#writeRequest(java.io.OutputStream)">writeRequest</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/OutputStream.html" title="class or interface in java.io">OutputStream</A>&nbsp;out)</CODE>
 
193
 
 
194
<BR>
 
195
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes the request entity to the given stream.</TD>
 
196
</TR>
 
197
</TABLE>
 
198
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
 
199
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
 
200
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
 
201
<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TH>
 
202
</TR>
 
203
<TR BGCOLOR="white" CLASS="TableRowColor">
 
204
<TD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
 
205
</TR>
 
206
</TABLE>
 
207
&nbsp;
 
208
<P>
 
209
 
 
210
<!-- ========= CONSTRUCTOR DETAIL ======== -->
 
211
 
 
212
<A NAME="constructor_detail"><!-- --></A>
 
213
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
 
214
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
215
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
 
216
<B>Constructor Detail</B></FONT></TH>
 
217
</TR>
 
218
</TABLE>
 
219
 
 
220
<A NAME="StringRequestEntity(java.lang.String)"><!-- --></A><H3>
 
221
StringRequestEntity</H3>
 
222
<PRE>
 
223
public <B>StringRequestEntity</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;content)</PRE>
 
224
<DL>
 
225
<DD><B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../../org/apache/commons/httpclient/methods/StringRequestEntity.html#StringRequestEntity(java.lang.String, java.lang.String, java.lang.String)"><CODE>StringRequestEntity(String, String, String)</CODE></A> instead</I>
 
226
<P>
 
227
<DD><p>Creates a new entity with the given content. This constructor 
 
228
 will use the default platform charset to convert the content string 
 
229
 and will provide no content type.</p>
 
230
<P>
 
231
<DL>
 
232
<DT><B>Parameters:</B><DD><CODE>content</CODE> - The content to set.<DT><B>See Also:</B><DD><A HREF="../../../../../org/apache/commons/httpclient/methods/StringRequestEntity.html#StringRequestEntity(java.lang.String, java.lang.String, java.lang.String)"><CODE>StringRequestEntity(String, String, String)</CODE></A></DL>
 
233
</DL>
 
234
<HR>
 
235
 
 
236
<A NAME="StringRequestEntity(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
 
237
StringRequestEntity</H3>
 
238
<PRE>
 
239
public <B>StringRequestEntity</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;content,
 
240
                           <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;contentType,
 
241
                           <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;charset)
 
242
                    throws <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/UnsupportedEncodingException.html" title="class or interface in java.io">UnsupportedEncodingException</A></PRE>
 
243
<DL>
 
244
<DD>Creates a new entity with the given content, content type, and charset.
 
245
<P>
 
246
<DL>
 
247
<DT><B>Parameters:</B><DD><CODE>content</CODE> - The content to set.<DD><CODE>contentType</CODE> - The type of the content, or <code>null</code>.  The value retured 
 
248
   by <A HREF="../../../../../org/apache/commons/httpclient/methods/StringRequestEntity.html#getContentType()"><CODE>getContentType()</CODE></A>.  If this content type contains a charset and the charset
 
249
   parameter is null, the content's type charset will be used.<DD><CODE>charset</CODE> - The charset of the content, or <code>null</code>.  Used to convert the 
 
250
   content to bytes.  If the content type does not contain a charset and charset is not null,
 
251
   then the charset will be appended to the content type.
 
252
<DT><B>Throws:</B>
 
253
<DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/UnsupportedEncodingException.html" title="class or interface in java.io">UnsupportedEncodingException</A></CODE></DL>
 
254
</DL>
 
255
 
 
256
<!-- ============ METHOD DETAIL ========== -->
 
257
 
 
258
<A NAME="method_detail"><!-- --></A>
 
259
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
 
260
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
261
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
 
262
<B>Method Detail</B></FONT></TH>
 
263
</TR>
 
264
</TABLE>
 
265
 
 
266
<A NAME="getContentType()"><!-- --></A><H3>
 
267
getContentType</H3>
 
268
<PRE>
 
269
public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getContentType</B>()</PRE>
 
270
<DL>
 
271
<DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/apache/commons/httpclient/methods/RequestEntity.html#getContentType()">RequestEntity</A></CODE></B></DD>
 
272
<DD>Gets the entity's content type.  This content type will be used as the value for the
 
273
 "Content-Type" header.
 
274
<P>
 
275
<DD><DL>
 
276
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/commons/httpclient/methods/RequestEntity.html#getContentType()">getContentType</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/commons/httpclient/methods/RequestEntity.html" title="interface in org.apache.commons.httpclient.methods">RequestEntity</A></CODE></DL>
 
277
</DD>
 
278
<DD><DL>
 
279
 
 
280
<DT><B>Returns:</B><DD>the entity's content type<DT><B>See Also:</B><DD><A HREF="../../../../../org/apache/commons/httpclient/HttpMethod.html#setRequestHeader(java.lang.String, java.lang.String)"><CODE>HttpMethod.setRequestHeader(String, String)</CODE></A></DL>
 
281
</DD>
 
282
</DL>
 
283
<HR>
 
284
 
 
285
<A NAME="isRepeatable()"><!-- --></A><H3>
 
286
isRepeatable</H3>
 
287
<PRE>
 
288
public boolean <B>isRepeatable</B>()</PRE>
 
289
<DL>
 
290
<DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/apache/commons/httpclient/methods/RequestEntity.html#isRepeatable()">RequestEntity</A></CODE></B></DD>
 
291
<DD>Tests if <A HREF="../../../../../org/apache/commons/httpclient/methods/RequestEntity.html#writeRequest(java.io.OutputStream)"><CODE>RequestEntity.writeRequest(OutputStream)</CODE></A> can be called more than once.
 
292
<P>
 
293
<DD><DL>
 
294
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/commons/httpclient/methods/RequestEntity.html#isRepeatable()">isRepeatable</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/commons/httpclient/methods/RequestEntity.html" title="interface in org.apache.commons.httpclient.methods">RequestEntity</A></CODE></DL>
 
295
</DD>
 
296
<DD><DL>
 
297
 
 
298
<DT><B>Returns:</B><DD><code>true</code></DL>
 
299
</DD>
 
300
</DL>
 
301
<HR>
 
302
 
 
303
<A NAME="writeRequest(java.io.OutputStream)"><!-- --></A><H3>
 
304
writeRequest</H3>
 
305
<PRE>
 
306
public void <B>writeRequest</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/OutputStream.html" title="class or interface in java.io">OutputStream</A>&nbsp;out)
 
307
                  throws <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE>
 
308
<DL>
 
309
<DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/apache/commons/httpclient/methods/RequestEntity.html#writeRequest(java.io.OutputStream)">RequestEntity</A></CODE></B></DD>
 
310
<DD>Writes the request entity to the given stream.
 
311
<P>
 
312
<DD><DL>
 
313
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/commons/httpclient/methods/RequestEntity.html#writeRequest(java.io.OutputStream)">writeRequest</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/commons/httpclient/methods/RequestEntity.html" title="interface in org.apache.commons.httpclient.methods">RequestEntity</A></CODE></DL>
 
314
</DD>
 
315
<DD><DL>
 
316
 
 
317
<DT><B>Throws:</B>
 
318
<DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE></DL>
 
319
</DD>
 
320
</DL>
 
321
<HR>
 
322
 
 
323
<A NAME="getContentLength()"><!-- --></A><H3>
 
324
getContentLength</H3>
 
325
<PRE>
 
326
public long <B>getContentLength</B>()</PRE>
 
327
<DL>
 
328
<DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/apache/commons/httpclient/methods/RequestEntity.html#getContentLength()">RequestEntity</A></CODE></B></DD>
 
329
<DD>Gets the request entity's length. This method should return a non-negative value if the content 
 
330
 length is known or a negative value if it is not. In the latter case the
 
331
 <A HREF="../../../../../org/apache/commons/httpclient/methods/EntityEnclosingMethod.html" title="class in org.apache.commons.httpclient.methods"><CODE>EntityEnclosingMethod</CODE></A> will use chunk encoding to
 
332
 transmit the request entity.
 
333
<P>
 
334
<DD><DL>
 
335
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/commons/httpclient/methods/RequestEntity.html#getContentLength()">getContentLength</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/commons/httpclient/methods/RequestEntity.html" title="interface in org.apache.commons.httpclient.methods">RequestEntity</A></CODE></DL>
 
336
</DD>
 
337
<DD><DL>
 
338
 
 
339
<DT><B>Returns:</B><DD>The length of the content.</DL>
 
340
</DD>
 
341
</DL>
 
342
<HR>
 
343
 
 
344
<A NAME="getContent()"><!-- --></A><H3>
 
345
getContent</H3>
 
346
<PRE>
 
347
public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getContent</B>()</PRE>
 
348
<DL>
 
349
<DD><DL>
 
350
</DL>
 
351
</DD>
 
352
<DD><DL>
 
353
 
 
354
<DT><B>Returns:</B><DD>Returns the content.</DL>
 
355
</DD>
 
356
</DL>
 
357
<HR>
 
358
 
 
359
<A NAME="getCharset()"><!-- --></A><H3>
 
360
getCharset</H3>
 
361
<PRE>
 
362
public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getCharset</B>()</PRE>
 
363
<DL>
 
364
<DD><DL>
 
365
</DL>
 
366
</DD>
 
367
<DD><DL>
 
368
 
 
369
<DT><B>Returns:</B><DD>Returns the charset used to convert the content to bytes. <code>null</code> if
 
370
 no charset as been specified.</DL>
 
371
</DD>
 
372
</DL>
 
373
<!-- ========= END OF CLASS DATA ========= -->
 
374
<HR>
 
375
 
 
376
 
 
377
<!-- ======= START OF BOTTOM NAVBAR ====== -->
 
378
<A NAME="navbar_bottom"><!-- --></A>
 
379
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
 
380
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
 
381
<TR>
 
382
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
 
383
<A NAME="navbar_bottom_firstrow"><!-- --></A>
 
384
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
 
385
  <TR ALIGN="center" VALIGN="top">
 
386
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
 
387
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
 
388
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
 
389
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/StringRequestEntity.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
 
390
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
 
391
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
 
392
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
 
393
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
 
394
  </TR>
 
395
</TABLE>
 
396
</TD>
 
397
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
 
398
</EM>
 
399
</TD>
 
400
</TR>
 
401
 
 
402
<TR>
 
403
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 
404
&nbsp;<A HREF="../../../../../org/apache/commons/httpclient/methods/RequestEntity.html" title="interface in org.apache.commons.httpclient.methods"><B>PREV CLASS</B></A>&nbsp;
 
405
&nbsp;<A HREF="../../../../../org/apache/commons/httpclient/methods/TraceMethod.html" title="class in org.apache.commons.httpclient.methods"><B>NEXT CLASS</B></A></FONT></TD>
 
406
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 
407
  <A HREF="../../../../../index.html?org/apache/commons/httpclient/methods/StringRequestEntity.html" target="_top"><B>FRAMES</B></A>  &nbsp;
 
408
&nbsp;<A HREF="StringRequestEntity.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
 
409
&nbsp;<SCRIPT type="text/javascript">
 
410
  <!--
 
411
  if(window==top) {
 
412
    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
 
413
  }
 
414
  //-->
 
415
</SCRIPT>
 
416
<NOSCRIPT>
 
417
  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
 
418
</NOSCRIPT>
 
419
 
 
420
 
 
421
</FONT></TD>
 
422
</TR>
 
423
<TR>
 
424
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 
425
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
 
426
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 
427
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
 
428
</TR>
 
429
</TABLE>
 
430
<A NAME="skip-navbar_bottom"></A>
 
431
<!-- ======== END OF BOTTOM NAVBAR ======= -->
 
432
 
 
433
<HR>
 
434
Copyright &copy; 2001-2007 Apache Software Foundation. All Rights Reserved.
 
435
</BODY>
 
436
</HTML>