~ubuntu-branches/ubuntu/lucid/commons-httpclient/lucid

« back to all changes in this revision

Viewing changes to docs/apidocs/org/apache/commons/httpclient/HttpConstants.html

  • Committer: Bazaar Package Importer
  • Author(s): Barry Hawkins
  • Date: 2005-11-25 13:12:23 UTC
  • Revision ID: james.westby@ubuntu.com-20051125131223-2g7eyo21pqgrohpo
Tags: upstream-2.0.2
ImportĀ upstreamĀ versionĀ 2.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd">
 
2
<!--NewPage-->
 
3
<HTML>
 
4
<HEAD>
 
5
<!-- Generated by javadoc on Sun Oct 10 17:41:04 EDT 2004 -->
 
6
<TITLE>
 
7
HttpClient 2.0.2 API: Class  HttpConstants
 
8
</TITLE>
 
9
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
 
10
</HEAD>
 
11
<BODY BGCOLOR="white">
 
12
 
 
13
<!-- ========== START OF NAVBAR ========== -->
 
14
<A NAME="navbar_top"><!-- --></A>
 
15
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
 
16
<TR>
 
17
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
 
18
<A NAME="navbar_top_firstrow"><!-- --></A>
 
19
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
 
20
  <TR ALIGN="center" VALIGN="top">
 
21
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
 
22
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
 
23
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
 
24
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/HttpConstants.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
 
25
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
 
26
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
 
27
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
 
28
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
 
29
  </TR>
 
30
</TABLE>
 
31
</TD>
 
32
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
 
33
</EM>
 
34
</TD>
 
35
</TR>
 
36
 
 
37
<TR>
 
38
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 
39
&nbsp;<A HREF="../../../../org/apache/commons/httpclient/HttpConnection.html"><B>PREV CLASS</B></A>&nbsp;
 
40
&nbsp;<A HREF="../../../../org/apache/commons/httpclient/HttpMethodBase.html"><B>NEXT CLASS</B></A></FONT></TD>
 
41
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 
42
  <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
 
43
&nbsp;<A HREF="HttpConstants.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
 
44
</TR>
 
45
<TR>
 
46
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 
47
  SUMMARY: &nbsp;INNER&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>
 
48
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 
49
DETAIL: &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>
 
50
</TR>
 
51
</TABLE>
 
52
<!-- =========== END OF NAVBAR =========== -->
 
53
 
 
54
<HR>
 
55
<!-- ======== START OF CLASS DATA ======== -->
 
56
<H2>
 
57
<FONT SIZE="-1">
 
58
org.apache.commons.httpclient</FONT>
 
59
<BR>
 
60
Class  HttpConstants</H2>
 
61
<PRE>
 
62
<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html">java.lang.Object</A>
 
63
  |
 
64
  +--<B>org.apache.commons.httpclient.HttpConstants</B>
 
65
</PRE>
 
66
<HR>
 
67
<DL>
 
68
<DT>public class <B>HttpConstants</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html">Object</A></DL>
 
69
 
 
70
<P>
 
71
HTTP content conversion routines.
 
72
<P>
 
73
<DL>
 
74
<DT><B>Author: </B><DD>Oleg Kalnichevski, <a href="mailto:mbowler@GargoyleSoftware.com">Mike Bowler</a></DD>
 
75
</DL>
 
76
<HR>
 
77
 
 
78
<P>
 
79
<!-- ======== INNER CLASS SUMMARY ======== -->
 
80
 
 
81
 
 
82
<!-- =========== FIELD SUMMARY =========== -->
 
83
 
 
84
<A NAME="field_summary"><!-- --></A>
 
85
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 
86
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
87
<TD COLSPAN=2><FONT SIZE="+2">
 
88
<B>Field Summary</B></FONT></TD>
 
89
</TR>
 
90
<TR BGCOLOR="white" CLASS="TableRowColor">
 
91
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
92
<CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A></CODE></FONT></TD>
 
93
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpConstants.html#DEFAULT_CONTENT_CHARSET">DEFAULT_CONTENT_CHARSET</A></B></CODE>
 
94
 
 
95
<BR>
 
96
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default content encoding chatset</TD>
 
97
</TR>
 
98
<TR BGCOLOR="white" CLASS="TableRowColor">
 
99
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
100
<CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A></CODE></FONT></TD>
 
101
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpConstants.html#HTTP_ELEMENT_CHARSET">HTTP_ELEMENT_CHARSET</A></B></CODE>
 
102
 
 
103
<BR>
 
104
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Character set used to encode HTTP protocol elements</TD>
 
105
</TR>
 
106
</TABLE>
 
107
&nbsp;
 
108
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
 
109
 
 
110
<A NAME="constructor_summary"><!-- --></A>
 
111
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 
112
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
113
<TD COLSPAN=2><FONT SIZE="+2">
 
114
<B>Constructor Summary</B></FONT></TD>
 
115
</TR>
 
116
<TR BGCOLOR="white" CLASS="TableRowColor">
 
117
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpConstants.html#HttpConstants()">HttpConstants</A></B>()</CODE>
 
118
 
 
119
<BR>
 
120
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
 
121
</TR>
 
122
</TABLE>
 
123
&nbsp;
 
124
<!-- ========== METHOD SUMMARY =========== -->
 
125
 
 
126
<A NAME="method_summary"><!-- --></A>
 
127
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 
128
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
129
<TD COLSPAN=2><FONT SIZE="+2">
 
130
<B>Method Summary</B></FONT></TD>
 
131
</TR>
 
132
<TR BGCOLOR="white" CLASS="TableRowColor">
 
133
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
134
<CODE>static&nbsp;byte[]</CODE></FONT></TD>
 
135
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpConstants.html#getAsciiBytes(java.lang.String)">getAsciiBytes</A></B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A>&nbsp;data)</CODE>
 
136
 
 
137
<BR>
 
138
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts the specified string to byte array of ASCII characters.</TD>
 
139
</TR>
 
140
<TR BGCOLOR="white" CLASS="TableRowColor">
 
141
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
142
<CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A></CODE></FONT></TD>
 
143
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpConstants.html#getAsciiString(byte[])">getAsciiString</A></B>(byte[]&nbsp;data)</CODE>
 
144
 
 
145
<BR>
 
146
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts the byte array of ASCII characters to a string.</TD>
 
147
</TR>
 
148
<TR BGCOLOR="white" CLASS="TableRowColor">
 
149
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
150
<CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A></CODE></FONT></TD>
 
151
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpConstants.html#getAsciiString(byte[], int, int)">getAsciiString</A></B>(byte[]&nbsp;data,
 
152
               int&nbsp;offset,
 
153
               int&nbsp;length)</CODE>
 
154
 
 
155
<BR>
 
156
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts the byte array of ASCII characters to a string.</TD>
 
157
</TR>
 
158
<TR BGCOLOR="white" CLASS="TableRowColor">
 
159
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
160
<CODE>static&nbsp;byte[]</CODE></FONT></TD>
 
161
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpConstants.html#getBytes(java.lang.String)">getBytes</A></B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A>&nbsp;data)</CODE>
 
162
 
 
163
<BR>
 
164
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts the specified string to a byte array of HTTP element characters.</TD>
 
165
</TR>
 
166
<TR BGCOLOR="white" CLASS="TableRowColor">
 
167
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
168
<CODE>static&nbsp;byte[]</CODE></FONT></TD>
 
169
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpConstants.html#getContentBytes(java.lang.String)">getContentBytes</A></B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A>&nbsp;data)</CODE>
 
170
 
 
171
<BR>
 
172
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts the specified string to a byte array of HTTP content characters
 
173
 using default HTTP content encoding (ISO-8859-1) This method is to be
 
174
 used when encoding content of HTTP request/response</TD>
 
175
</TR>
 
176
<TR BGCOLOR="white" CLASS="TableRowColor">
 
177
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
178
<CODE>static&nbsp;byte[]</CODE></FONT></TD>
 
179
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpConstants.html#getContentBytes(java.lang.String, java.lang.String)">getContentBytes</A></B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A>&nbsp;data,
 
180
                <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A>&nbsp;charset)</CODE>
 
181
 
 
182
<BR>
 
183
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts the specified string to a byte array of HTTP content charachetrs
 
184
 This method is to be used when encoding content of HTTP request/response
 
185
 If the specified charset is not supported, default HTTP content encoding
 
186
 (ISO-8859-1) is applied</TD>
 
187
</TR>
 
188
<TR BGCOLOR="white" CLASS="TableRowColor">
 
189
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
190
<CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A></CODE></FONT></TD>
 
191
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpConstants.html#getContentString(byte[])">getContentString</A></B>(byte[]&nbsp;data)</CODE>
 
192
 
 
193
<BR>
 
194
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts the byte array of HTTP content characters to a string using
 
195
 default HTTP content encoding (ISO-8859-1) This method is to be used when
 
196
 decoding content of HTTP request/response</TD>
 
197
</TR>
 
198
<TR BGCOLOR="white" CLASS="TableRowColor">
 
199
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
200
<CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A></CODE></FONT></TD>
 
201
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpConstants.html#getContentString(byte[], int, int)">getContentString</A></B>(byte[]&nbsp;data,
 
202
                 int&nbsp;offset,
 
203
                 int&nbsp;length)</CODE>
 
204
 
 
205
<BR>
 
206
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts the byte array of HTTP content characters to a string using
 
207
 default HTTP content encoding (ISO-8859-1) This method is to be used when
 
208
 decoding content of HTTP request/response</TD>
 
209
</TR>
 
210
<TR BGCOLOR="white" CLASS="TableRowColor">
 
211
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
212
<CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A></CODE></FONT></TD>
 
213
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpConstants.html#getContentString(byte[], int, int, java.lang.String)">getContentString</A></B>(byte[]&nbsp;data,
 
214
                 int&nbsp;offset,
 
215
                 int&nbsp;length,
 
216
                 <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A>&nbsp;charset)</CODE>
 
217
 
 
218
<BR>
 
219
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts the byte array of HTTP content characters to a string This
 
220
 method is to be used when decoding content of HTTP request/response If
 
221
 the specified charset is not supported, default HTTP content encoding
 
222
 (ISO-8859-1) is applied</TD>
 
223
</TR>
 
224
<TR BGCOLOR="white" CLASS="TableRowColor">
 
225
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
226
<CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A></CODE></FONT></TD>
 
227
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpConstants.html#getContentString(byte[], java.lang.String)">getContentString</A></B>(byte[]&nbsp;data,
 
228
                 <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A>&nbsp;charset)</CODE>
 
229
 
 
230
<BR>
 
231
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts the byte array of HTTP content characters to a string This
 
232
 method is to be used when decoding content of HTTP request/response If
 
233
 the specified charset is not supported, default HTTP content encoding
 
234
 (ISO-8859-1) is applied</TD>
 
235
</TR>
 
236
<TR BGCOLOR="white" CLASS="TableRowColor">
 
237
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
238
<CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A></CODE></FONT></TD>
 
239
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpConstants.html#getString(byte[])">getString</A></B>(byte[]&nbsp;data)</CODE>
 
240
 
 
241
<BR>
 
242
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts the byte array of HTTP element characters to a string This
 
243
 method is to be used when decoding content of HTTP elements (such as
 
244
 response headers)</TD>
 
245
</TR>
 
246
<TR BGCOLOR="white" CLASS="TableRowColor">
 
247
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
248
<CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A></CODE></FONT></TD>
 
249
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpConstants.html#getString(byte[], int, int)">getString</A></B>(byte[]&nbsp;data,
 
250
          int&nbsp;offset,
 
251
          int&nbsp;length)</CODE>
 
252
 
 
253
<BR>
 
254
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts the byte array of HTTP element characters to a string This
 
255
 method is to be used when decoding content of HTTP elements (such as
 
256
 response headers)</TD>
 
257
</TR>
 
258
</TABLE>
 
259
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
 
260
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 
261
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
 
262
<TD><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html">Object</A></B></TD>
 
263
</TR>
 
264
<TR BGCOLOR="white" CLASS="TableRowColor">
 
265
<TD><CODE><A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#<clinit>()"><clinit></A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#clone()">clone</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#finalize()">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#getClass()">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#notify()">notify</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#toString()">toString</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#wait()">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#wait(long)">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#wait(long, int)">wait</A></CODE></TD>
 
266
</TR>
 
267
</TABLE>
 
268
&nbsp;
 
269
<P>
 
270
 
 
271
<!-- ============ FIELD DETAIL =========== -->
 
272
 
 
273
<A NAME="field_detail"><!-- --></A>
 
274
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 
275
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
276
<TD COLSPAN=1><FONT SIZE="+2">
 
277
<B>Field Detail</B></FONT></TD>
 
278
</TR>
 
279
</TABLE>
 
280
 
 
281
<A NAME="HTTP_ELEMENT_CHARSET"><!-- --></A><H3>
 
282
HTTP_ELEMENT_CHARSET</H3>
 
283
<PRE>
 
284
public static final <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> <B>HTTP_ELEMENT_CHARSET</B></PRE>
 
285
<DL>
 
286
<DD>Character set used to encode HTTP protocol elements</DL>
 
287
<HR>
 
288
 
 
289
<A NAME="DEFAULT_CONTENT_CHARSET"><!-- --></A><H3>
 
290
DEFAULT_CONTENT_CHARSET</H3>
 
291
<PRE>
 
292
public static final <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> <B>DEFAULT_CONTENT_CHARSET</B></PRE>
 
293
<DL>
 
294
<DD>Default content encoding chatset</DL>
 
295
 
 
296
<!-- ========= CONSTRUCTOR DETAIL ======== -->
 
297
 
 
298
<A NAME="constructor_detail"><!-- --></A>
 
299
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 
300
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
301
<TD COLSPAN=1><FONT SIZE="+2">
 
302
<B>Constructor Detail</B></FONT></TD>
 
303
</TR>
 
304
</TABLE>
 
305
 
 
306
<A NAME="HttpConstants()"><!-- --></A><H3>
 
307
HttpConstants</H3>
 
308
<PRE>
 
309
public <B>HttpConstants</B>()</PRE>
 
310
<DL>
 
311
</DL>
 
312
 
 
313
<!-- ============ METHOD DETAIL ========== -->
 
314
 
 
315
<A NAME="method_detail"><!-- --></A>
 
316
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 
317
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
318
<TD COLSPAN=1><FONT SIZE="+2">
 
319
<B>Method Detail</B></FONT></TD>
 
320
</TR>
 
321
</TABLE>
 
322
 
 
323
<A NAME="getBytes(java.lang.String)"><!-- --></A><H3>
 
324
getBytes</H3>
 
325
<PRE>
 
326
public static byte[] <B>getBytes</B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A>&nbsp;data)</PRE>
 
327
<DL>
 
328
<DD>Converts the specified string to a byte array of HTTP element characters.
 
329
 This method is to be used when encoding content of HTTP elements (such as
 
330
 request headers)<DD><DL>
 
331
<DT><B>Parameters:</B><DD><CODE>data</CODE> - the string to be encoded<DT><B>Returns:</B><DD>The resulting byte array.</DL>
 
332
</DD>
 
333
</DL>
 
334
<HR>
 
335
 
 
336
<A NAME="getString(byte[], int, int)"><!-- --></A><H3>
 
337
getString</H3>
 
338
<PRE>
 
339
public static <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> <B>getString</B>(byte[]&nbsp;data,
 
340
                               int&nbsp;offset,
 
341
                               int&nbsp;length)</PRE>
 
342
<DL>
 
343
<DD>Converts the byte array of HTTP element characters to a string This
 
344
 method is to be used when decoding content of HTTP elements (such as
 
345
 response headers)<DD><DL>
 
346
<DT><B>Parameters:</B><DD><CODE>data</CODE> - the byte array to be encoded<DD><CODE>offset</CODE> - the index of the first byte to encode<DD><CODE>length</CODE> - the number of bytes to encode<DT><B>Returns:</B><DD>The resulting string.</DL>
 
347
</DD>
 
348
</DL>
 
349
<HR>
 
350
 
 
351
<A NAME="getString(byte[])"><!-- --></A><H3>
 
352
getString</H3>
 
353
<PRE>
 
354
public static <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> <B>getString</B>(byte[]&nbsp;data)</PRE>
 
355
<DL>
 
356
<DD>Converts the byte array of HTTP element characters to a string This
 
357
 method is to be used when decoding content of HTTP elements (such as
 
358
 response headers)<DD><DL>
 
359
<DT><B>Parameters:</B><DD><CODE>data</CODE> - the byte array to be encoded<DT><B>Returns:</B><DD>The resulting string.</DL>
 
360
</DD>
 
361
</DL>
 
362
<HR>
 
363
 
 
364
<A NAME="getContentBytes(java.lang.String, java.lang.String)"><!-- --></A><H3>
 
365
getContentBytes</H3>
 
366
<PRE>
 
367
public static byte[] <B>getContentBytes</B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A>&nbsp;data,
 
368
                                     <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A>&nbsp;charset)</PRE>
 
369
<DL>
 
370
<DD>Converts the specified string to a byte array of HTTP content charachetrs
 
371
 This method is to be used when encoding content of HTTP request/response
 
372
 If the specified charset is not supported, default HTTP content encoding
 
373
 (ISO-8859-1) is applied<DD><DL>
 
374
<DT><B>Parameters:</B><DD><CODE>data</CODE> - the string to be encoded<DD><CODE>charset</CODE> - the desired character encoding<DT><B>Returns:</B><DD>The resulting byte array.</DL>
 
375
</DD>
 
376
</DL>
 
377
<HR>
 
378
 
 
379
<A NAME="getContentString(byte[], int, int, java.lang.String)"><!-- --></A><H3>
 
380
getContentString</H3>
 
381
<PRE>
 
382
public static <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> <B>getContentString</B>(byte[]&nbsp;data,
 
383
                                      int&nbsp;offset,
 
384
                                      int&nbsp;length,
 
385
                                      <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A>&nbsp;charset)</PRE>
 
386
<DL>
 
387
<DD>Converts the byte array of HTTP content characters to a string This
 
388
 method is to be used when decoding content of HTTP request/response If
 
389
 the specified charset is not supported, default HTTP content encoding
 
390
 (ISO-8859-1) is applied<DD><DL>
 
391
<DT><B>Parameters:</B><DD><CODE>data</CODE> - the byte array to be encoded<DD><CODE>offset</CODE> - the index of the first byte to encode<DD><CODE>length</CODE> - the number of bytes to encode<DD><CODE>charset</CODE> - the desired character encoding<DT><B>Returns:</B><DD>The result of the conversion.</DL>
 
392
</DD>
 
393
</DL>
 
394
<HR>
 
395
 
 
396
<A NAME="getContentString(byte[], java.lang.String)"><!-- --></A><H3>
 
397
getContentString</H3>
 
398
<PRE>
 
399
public static <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> <B>getContentString</B>(byte[]&nbsp;data,
 
400
                                      <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A>&nbsp;charset)</PRE>
 
401
<DL>
 
402
<DD>Converts the byte array of HTTP content characters to a string This
 
403
 method is to be used when decoding content of HTTP request/response If
 
404
 the specified charset is not supported, default HTTP content encoding
 
405
 (ISO-8859-1) is applied<DD><DL>
 
406
<DT><B>Parameters:</B><DD><CODE>data</CODE> - the byte array to be encoded<DD><CODE>charset</CODE> - the desired character encoding<DT><B>Returns:</B><DD>The result of the conversion.</DL>
 
407
</DD>
 
408
</DL>
 
409
<HR>
 
410
 
 
411
<A NAME="getContentBytes(java.lang.String)"><!-- --></A><H3>
 
412
getContentBytes</H3>
 
413
<PRE>
 
414
public static byte[] <B>getContentBytes</B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A>&nbsp;data)</PRE>
 
415
<DL>
 
416
<DD>Converts the specified string to a byte array of HTTP content characters
 
417
 using default HTTP content encoding (ISO-8859-1) This method is to be
 
418
 used when encoding content of HTTP request/response<DD><DL>
 
419
<DT><B>Parameters:</B><DD><CODE>data</CODE> - the string to be encoded<DT><B>Returns:</B><DD>The byte array as above.</DL>
 
420
</DD>
 
421
</DL>
 
422
<HR>
 
423
 
 
424
<A NAME="getContentString(byte[], int, int)"><!-- --></A><H3>
 
425
getContentString</H3>
 
426
<PRE>
 
427
public static <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> <B>getContentString</B>(byte[]&nbsp;data,
 
428
                                      int&nbsp;offset,
 
429
                                      int&nbsp;length)</PRE>
 
430
<DL>
 
431
<DD>Converts the byte array of HTTP content characters to a string using
 
432
 default HTTP content encoding (ISO-8859-1) This method is to be used when
 
433
 decoding content of HTTP request/response<DD><DL>
 
434
<DT><B>Parameters:</B><DD><CODE>data</CODE> - the byte array to be encoded<DD><CODE>offset</CODE> - the index of the first byte to encode<DD><CODE>length</CODE> - the number of bytes to encode<DT><B>Returns:</B><DD>The string representation of the byte array.</DL>
 
435
</DD>
 
436
</DL>
 
437
<HR>
 
438
 
 
439
<A NAME="getContentString(byte[])"><!-- --></A><H3>
 
440
getContentString</H3>
 
441
<PRE>
 
442
public static <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> <B>getContentString</B>(byte[]&nbsp;data)</PRE>
 
443
<DL>
 
444
<DD>Converts the byte array of HTTP content characters to a string using
 
445
 default HTTP content encoding (ISO-8859-1) This method is to be used when
 
446
 decoding content of HTTP request/response<DD><DL>
 
447
<DT><B>Parameters:</B><DD><CODE>data</CODE> - the byte array to be encoded<DT><B>Returns:</B><DD>The string representation of the byte array.</DL>
 
448
</DD>
 
449
</DL>
 
450
<HR>
 
451
 
 
452
<A NAME="getAsciiBytes(java.lang.String)"><!-- --></A><H3>
 
453
getAsciiBytes</H3>
 
454
<PRE>
 
455
public static byte[] <B>getAsciiBytes</B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A>&nbsp;data)</PRE>
 
456
<DL>
 
457
<DD>Converts the specified string to byte array of ASCII characters.<DD><DL>
 
458
<DT><B>Parameters:</B><DD><CODE>data</CODE> - the string to be encoded<DT><B>Returns:</B><DD>The string as a byte array.</DL>
 
459
</DD>
 
460
</DL>
 
461
<HR>
 
462
 
 
463
<A NAME="getAsciiString(byte[], int, int)"><!-- --></A><H3>
 
464
getAsciiString</H3>
 
465
<PRE>
 
466
public static <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> <B>getAsciiString</B>(byte[]&nbsp;data,
 
467
                                    int&nbsp;offset,
 
468
                                    int&nbsp;length)</PRE>
 
469
<DL>
 
470
<DD>Converts the byte array of ASCII characters to a string. This method is
 
471
 to be used when decoding content of HTTP elements (such as response
 
472
 headers)<DD><DL>
 
473
<DT><B>Parameters:</B><DD><CODE>data</CODE> - the byte array to be encoded<DD><CODE>offset</CODE> - the index of the first byte to encode<DD><CODE>length</CODE> - the number of bytes to encode<DT><B>Returns:</B><DD>The string representation of the byte array</DL>
 
474
</DD>
 
475
</DL>
 
476
<HR>
 
477
 
 
478
<A NAME="getAsciiString(byte[])"><!-- --></A><H3>
 
479
getAsciiString</H3>
 
480
<PRE>
 
481
public static <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> <B>getAsciiString</B>(byte[]&nbsp;data)</PRE>
 
482
<DL>
 
483
<DD>Converts the byte array of ASCII characters to a string. This method is
 
484
 to be used when decoding content of HTTP elements (such as response
 
485
 headers)<DD><DL>
 
486
<DT><B>Parameters:</B><DD><CODE>data</CODE> - the byte array to be encoded<DT><B>Returns:</B><DD>The string representation of the byte array</DL>
 
487
</DD>
 
488
</DL>
 
489
<!-- ========= END OF CLASS DATA ========= -->
 
490
<HR>
 
491
 
 
492
<!-- ========== START OF NAVBAR ========== -->
 
493
<A NAME="navbar_bottom"><!-- --></A>
 
494
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
 
495
<TR>
 
496
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
 
497
<A NAME="navbar_bottom_firstrow"><!-- --></A>
 
498
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
 
499
  <TR ALIGN="center" VALIGN="top">
 
500
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
 
501
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
 
502
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
 
503
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/HttpConstants.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
 
504
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
 
505
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
 
506
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
 
507
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
 
508
  </TR>
 
509
</TABLE>
 
510
</TD>
 
511
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
 
512
</EM>
 
513
</TD>
 
514
</TR>
 
515
 
 
516
<TR>
 
517
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 
518
&nbsp;<A HREF="../../../../org/apache/commons/httpclient/HttpConnection.html"><B>PREV CLASS</B></A>&nbsp;
 
519
&nbsp;<A HREF="../../../../org/apache/commons/httpclient/HttpMethodBase.html"><B>NEXT CLASS</B></A></FONT></TD>
 
520
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 
521
  <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
 
522
&nbsp;<A HREF="HttpConstants.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
 
523
</TR>
 
524
<TR>
 
525
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 
526
  SUMMARY: &nbsp;INNER&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">
 
528
DETAIL: &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
<!-- =========== END OF NAVBAR =========== -->
 
532
 
 
533
<HR>
 
534
Copyright &copy; 2001-2004 Apache Software Foundation. All Rights Reserved.
 
535
</BODY>
 
536
</HTML>