Subversion Repositories AndroidProjects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
356 chris 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_26) on Sun Jan 27 20:37:04 CET 2013 -->
6
<TITLE>
7
Net.HttpResponse (libgdx API)
8
</TITLE>
9
 
10
<META NAME="date" CONTENT="2013-01-27">
11
 
12
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
13
 
14
<SCRIPT type="text/javascript">
15
function windowTitle()
16
{
17
    if (location.href.indexOf('is-external=true') == -1) {
18
        parent.document.title="Net.HttpResponse (libgdx API)";
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="class-use/Net.HttpResponse.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
44
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
45
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
46
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
47
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
48
  </TR>
49
</TABLE>
50
</TD>
51
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
52
 
53
                                libgdx API
54
                                <style>
55
                                body, td, th { font-family:Helvetica, Tahoma, Arial, sans-serif; font-size:10pt }
56
                                pre, code, tt { font-size:9pt; font-family:Lucida Console, Courier New, sans-serif }
57
                                h1, h2, h3, .FrameTitleFont, .FrameHeadingFont, .TableHeadingColor font { font-size:105%;  font-weight:bold }
58
                                .TableHeadingColor { background:#EEEEFF; }
59
                                a { text-decoration:none }
60
                                a:hover { text-decoration:underline }
61
                                a:link, a:visited { color:blue }
62
                                table { border:0px }
63
                                .TableRowColor td:first-child { border-left:1px solid black }
64
                                .TableRowColor td { border:0px; border-bottom:1px solid black; border-right:1px solid black }
65
                                hr { border:0px; border-bottom:1px solid #333366; }
66
                                </style>
67
                        </EM>
68
</TD>
69
</TR>
70
 
71
<TR>
72
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
73
&nbsp;<A HREF="../../../com/badlogic/gdx/Net.HttpRequest.html" title="class in com.badlogic.gdx"><B>PREV CLASS</B></A>&nbsp;
74
&nbsp;<A HREF="../../../com/badlogic/gdx/Net.HttpResponseListener.html" title="interface in com.badlogic.gdx"><B>NEXT CLASS</B></A></FONT></TD>
75
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
76
  <A HREF="../../../index.html?com/badlogic/gdx/Net.HttpResponse.html" target="_top"><B>FRAMES</B></A>  &nbsp;
77
&nbsp;<A HREF="Net.HttpResponse.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
78
&nbsp;<SCRIPT type="text/javascript">
79
  <!--
80
  if(window==top) {
81
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
82
  }
83
  //-->
84
</SCRIPT>
85
<NOSCRIPT>
86
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
87
</NOSCRIPT>
88
 
89
 
90
</FONT></TD>
91
</TR>
92
<TR>
93
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
94
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
95
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
96
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
97
</TR>
98
</TABLE>
99
<A NAME="skip-navbar_top"></A>
100
<!-- ========= END OF TOP NAVBAR ========= -->
101
 
102
<HR>
103
<!-- ======== START OF CLASS DATA ======== -->
104
<H2>
105
<FONT SIZE="-1">
106
com.badlogic.gdx</FONT>
107
<BR>
108
Interface Net.HttpResponse</H2>
109
<DL>
110
<DT><B>Enclosing interface:</B><DD><A HREF="../../../com/badlogic/gdx/Net.html" title="interface in com.badlogic.gdx">Net</A></DD>
111
</DL>
112
<HR>
113
<DL>
114
<DT><PRE>public static interface <B>Net.HttpResponse</B></DL>
115
</PRE>
116
 
117
<P>
118
HTTP response interface with methods to get the response data as a byte[], a <CODE>String</CODE> or an <CODE>InputStream</CODE>.
119
<P>
120
 
121
<P>
122
<HR>
123
 
124
<P>
125
 
126
<!-- ========== METHOD SUMMARY =========== -->
127
 
128
<A NAME="method_summary"><!-- --></A>
129
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
130
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
131
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
132
<B>Method Summary</B></FONT></TH>
133
</TR>
134
<TR BGCOLOR="white" CLASS="TableRowColor">
135
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
136
<CODE>&nbsp;byte[]</CODE></FONT></TD>
137
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Net.HttpResponse.html#getResult()">getResult</A></B>()</CODE>
138
 
139
<BR>
140
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the data of the HTTP response as a byte[].</TD>
141
</TR>
142
<TR BGCOLOR="white" CLASS="TableRowColor">
143
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
144
<CODE>&nbsp;java.io.InputStream</CODE></FONT></TD>
145
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Net.HttpResponse.html#getResultAsStream()">getResultAsStream</A></B>()</CODE>
146
 
147
<BR>
148
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the data of the HTTP response as an <CODE>InputStream</CODE>.</TD>
149
</TR>
150
<TR BGCOLOR="white" CLASS="TableRowColor">
151
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
152
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
153
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Net.HttpResponse.html#getResultAsString()">getResultAsString</A></B>()</CODE>
154
 
155
<BR>
156
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the data of the HTTP response as a <CODE>String</CODE>.</TD>
157
</TR>
158
<TR BGCOLOR="white" CLASS="TableRowColor">
159
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
160
<CODE>&nbsp;<A HREF="../../../com/badlogic/gdx/Net.HttpStatus.html" title="class in com.badlogic.gdx">Net.HttpStatus</A></CODE></FONT></TD>
161
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/Net.HttpResponse.html#getStatus()">getStatus</A></B>()</CODE>
162
 
163
<BR>
164
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the <A HREF="../../../com/badlogic/gdx/Net.HttpStatus.html" title="class in com.badlogic.gdx"><CODE>Net.HttpStatus</CODE></A> containing the statusCode of the HTTP response.</TD>
165
</TR>
166
</TABLE>
167
&nbsp;
168
<P>
169
 
170
<!-- ============ METHOD DETAIL ========== -->
171
 
172
<A NAME="method_detail"><!-- --></A>
173
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
174
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
175
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
176
<B>Method Detail</B></FONT></TH>
177
</TR>
178
</TABLE>
179
 
180
<A NAME="getResult()"><!-- --></A><H3>
181
getResult</H3>
182
<PRE>
183
byte[] <B>getResult</B>()</PRE>
184
<DL>
185
<DD>Returns the data of the HTTP response as a byte[].
186
<P>
187
<DD><DL>
188
 
189
<DT><B>Returns:</B><DD>the result as a byte[] or null in case of a timeout or if the operation was canceled/terminated abnormally. The
190
         timeout is specified when creating the HTTP request, with <A HREF="../../../com/badlogic/gdx/Net.HttpRequest.html#setTimeOut(int)"><CODE>Net.HttpRequest.setTimeOut(int)</CODE></A></DL>
191
</DD>
192
</DL>
193
<HR>
194
 
195
<A NAME="getResultAsString()"><!-- --></A><H3>
196
getResultAsString</H3>
197
<PRE>
198
java.lang.String <B>getResultAsString</B>()</PRE>
199
<DL>
200
<DD>Returns the data of the HTTP response as a <CODE>String</CODE>.
201
<P>
202
<DD><DL>
203
 
204
<DT><B>Returns:</B><DD>the result as a string or null in case of a timeout or if the operation was canceled/terminated abnormally. The
205
         timeout is specified when creating the HTTP request, with <A HREF="../../../com/badlogic/gdx/Net.HttpRequest.html#setTimeOut(int)"><CODE>Net.HttpRequest.setTimeOut(int)</CODE></A></DL>
206
</DD>
207
</DL>
208
<HR>
209
 
210
<A NAME="getResultAsStream()"><!-- --></A><H3>
211
getResultAsStream</H3>
212
<PRE>
213
java.io.InputStream <B>getResultAsStream</B>()</PRE>
214
<DL>
215
<DD>Returns the data of the HTTP response as an <CODE>InputStream</CODE>.
216
<P>
217
<DD><DL>
218
 
219
<DT><B>Returns:</B><DD>An <CODE>InputStream</CODE> with the <A HREF="../../../com/badlogic/gdx/Net.HttpResponse.html" title="interface in com.badlogic.gdx"><CODE>Net.HttpResponse</CODE></A> data.</DL>
220
</DD>
221
</DL>
222
<HR>
223
 
224
<A NAME="getStatus()"><!-- --></A><H3>
225
getStatus</H3>
226
<PRE>
227
<A HREF="../../../com/badlogic/gdx/Net.HttpStatus.html" title="class in com.badlogic.gdx">Net.HttpStatus</A> <B>getStatus</B>()</PRE>
228
<DL>
229
<DD>Returns the <A HREF="../../../com/badlogic/gdx/Net.HttpStatus.html" title="class in com.badlogic.gdx"><CODE>Net.HttpStatus</CODE></A> containing the statusCode of the HTTP response.
230
<P>
231
<DD><DL>
232
</DL>
233
</DD>
234
</DL>
235
<!-- ========= END OF CLASS DATA ========= -->
236
<HR>
237
 
238
 
239
<!-- ======= START OF BOTTOM NAVBAR ====== -->
240
<A NAME="navbar_bottom"><!-- --></A>
241
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
242
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
243
<TR>
244
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
245
<A NAME="navbar_bottom_firstrow"><!-- --></A>
246
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
247
  <TR ALIGN="center" VALIGN="top">
248
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
249
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
250
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
251
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Net.HttpResponse.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
252
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
253
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
254
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
255
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
256
  </TR>
257
</TABLE>
258
</TD>
259
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
260
libgdx API</EM>
261
</TD>
262
</TR>
263
 
264
<TR>
265
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
266
&nbsp;<A HREF="../../../com/badlogic/gdx/Net.HttpRequest.html" title="class in com.badlogic.gdx"><B>PREV CLASS</B></A>&nbsp;
267
&nbsp;<A HREF="../../../com/badlogic/gdx/Net.HttpResponseListener.html" title="interface in com.badlogic.gdx"><B>NEXT CLASS</B></A></FONT></TD>
268
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
269
  <A HREF="../../../index.html?com/badlogic/gdx/Net.HttpResponse.html" target="_top"><B>FRAMES</B></A>  &nbsp;
270
&nbsp;<A HREF="Net.HttpResponse.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
271
&nbsp;<SCRIPT type="text/javascript">
272
  <!--
273
  if(window==top) {
274
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
275
  }
276
  //-->
277
</SCRIPT>
278
<NOSCRIPT>
279
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
280
</NOSCRIPT>
281
 
282
 
283
</FONT></TD>
284
</TR>
285
<TR>
286
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
287
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
288
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
289
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
290
</TR>
291
</TABLE>
292
<A NAME="skip-navbar_bottom"></A>
293
<!-- ======== END OF BOTTOM NAVBAR ======= -->
294
 
295
<HR>
296
 
297
                                <div style="font-size:9pt"><i>
298
                                Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
299
                                </i></div>
300
 
301
</BODY>
302
</HTML>