mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-14 17:06:16 +00:00
775 lines
28 KiB
HTML
775 lines
28 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<!--NewPage-->
|
|
<HTML>
|
|
<HEAD>
|
|
<!-- Generated by javadoc (build 1.5.0_11) on Sun Jan 18 19:28:20 COT 2009 -->
|
|
<TITLE>
|
|
HttpRequest (Cobra 0.98.4 - Java HTML Toolkit - API Documentation)
|
|
</TITLE>
|
|
|
|
<META NAME="keywords" CONTENT="org.lobobrowser.html.HttpRequest interface">
|
|
|
|
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
|
|
|
|
<SCRIPT type="text/javascript">
|
|
function windowTitle()
|
|
{
|
|
parent.document.title="HttpRequest (Cobra 0.98.4 - Java HTML Toolkit - API Documentation)";
|
|
}
|
|
</SCRIPT>
|
|
<NOSCRIPT>
|
|
</NOSCRIPT>
|
|
|
|
</HEAD>
|
|
|
|
<BODY BGCOLOR="white" onload="windowTitle();">
|
|
|
|
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
<A NAME="navbar_top"><!-- --></A>
|
|
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
|
|
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
|
<TR>
|
|
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
|
<A NAME="navbar_top_firstrow"><!-- --></A>
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
|
<TR ALIGN="center" VALIGN="top">
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/HttpRequest.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
|
</TR>
|
|
</TABLE>
|
|
</TD>
|
|
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
|
</EM>
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../../../org/lobobrowser/html/HtmlRendererContext.html" title="interface in org.lobobrowser.html"><B>PREV CLASS</B></A>
|
|
<A HREF="../../../org/lobobrowser/html/ReadyStateChangeListener.html" title="interface in org.lobobrowser.html"><B>NEXT CLASS</B></A></FONT></TD>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../../../index.html?org/lobobrowser/html/HttpRequest.html" target="_top"><B>FRAMES</B></A>
|
|
<A HREF="HttpRequest.html" target="_top"><B>NO FRAMES</B></A>
|
|
<SCRIPT type="text/javascript">
|
|
<!--
|
|
if(window==top) {
|
|
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
|
}
|
|
//-->
|
|
</SCRIPT>
|
|
<NOSCRIPT>
|
|
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
|
|
</NOSCRIPT>
|
|
|
|
|
|
</FONT></TD>
|
|
</TR>
|
|
<TR>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="skip-navbar_top"></A>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
|
|
<HR>
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<H2>
|
|
<FONT SIZE="-1">
|
|
org.lobobrowser.html</FONT>
|
|
<BR>
|
|
Interface HttpRequest</H2>
|
|
<DL>
|
|
<DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../org/lobobrowser/html/test/SimpleHttpRequest.html" title="class in org.lobobrowser.html.test">SimpleHttpRequest</A></DD>
|
|
</DL>
|
|
<HR>
|
|
<DL>
|
|
<DT><PRE>public interface <B>HttpRequest</B></DL>
|
|
</PRE>
|
|
|
|
<P>
|
|
The <code>HttpRequest</code> interface should
|
|
be implemented to provide web request capabilities. It is
|
|
used a similar manner to <code>XMLHttpRequest</code> in
|
|
Javascript (AJAX). Normally, a listener will be added
|
|
by calling <A HREF="../../../org/lobobrowser/html/HttpRequest.html#addReadyStateChangeListener(org.lobobrowser.html.ReadyStateChangeListener)"><CODE>addReadyStateChangeListener(ReadyStateChangeListener)</CODE></A>,
|
|
the method <A HREF="../../../org/lobobrowser/html/HttpRequest.html#open(java.lang.String, java.net.URL, boolean, java.lang.String, java.lang.String)"><CODE>open</CODE></A>
|
|
will be called, and finally, <A HREF="../../../org/lobobrowser/html/HttpRequest.html#send(java.lang.String)"><CODE>send(String)</CODE></A> will be called to
|
|
complete the request.
|
|
<P>
|
|
|
|
<P>
|
|
<DL>
|
|
<DT><B>See Also:</B><DD><A HREF="../../../org/lobobrowser/html/UserAgentContext.html#createHttpRequest()"><CODE>UserAgentContext.createHttpRequest()</CODE></A></DL>
|
|
<HR>
|
|
|
|
<P>
|
|
<!-- =========== FIELD SUMMARY =========== -->
|
|
|
|
<A NAME="field_summary"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
<B>Field Summary</B></FONT></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/lobobrowser/html/HttpRequest.html#STATE_COMPLETE">STATE_COMPLETE</A></B></CODE>
|
|
|
|
<BR>
|
|
The complete request state.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/lobobrowser/html/HttpRequest.html#STATE_INTERACTIVE">STATE_INTERACTIVE</A></B></CODE>
|
|
|
|
<BR>
|
|
The interactive request state.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/lobobrowser/html/HttpRequest.html#STATE_LOADED">STATE_LOADED</A></B></CODE>
|
|
|
|
<BR>
|
|
The loaded request state.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/lobobrowser/html/HttpRequest.html#STATE_LOADING">STATE_LOADING</A></B></CODE>
|
|
|
|
<BR>
|
|
The loading request state.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/lobobrowser/html/HttpRequest.html#STATE_UNINITIALIZED">STATE_UNINITIALIZED</A></B></CODE>
|
|
|
|
<BR>
|
|
The uninitialized request state.</TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
|
|
<A NAME="method_summary"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
<B>Method Summary</B></FONT></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/lobobrowser/html/HttpRequest.html#abort()">abort</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Aborts an ongoing request.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/lobobrowser/html/HttpRequest.html#addReadyStateChangeListener(org.lobobrowser.html.ReadyStateChangeListener)">addReadyStateChangeListener</A></B>(<A HREF="../../../org/lobobrowser/html/ReadyStateChangeListener.html" title="interface in org.lobobrowser.html">ReadyStateChangeListener</A> listener)</CODE>
|
|
|
|
<BR>
|
|
Adds a listener of ReadyState changes.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> java.lang.String</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/lobobrowser/html/HttpRequest.html#getAllResponseHeaders()">getAllResponseHeaders</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Gets a string with all the response headers.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/lobobrowser/html/HttpRequest.html#getReadyState()">getReadyState</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Gets the state of the request, a value
|
|
between 0 and 4.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> byte[]</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/lobobrowser/html/HttpRequest.html#getResponseBytes()">getResponseBytes</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Gets the request response bytes.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> java.lang.String</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/lobobrowser/html/HttpRequest.html#getResponseHeader(java.lang.String)">getResponseHeader</A></B>(java.lang.String headerName)</CODE>
|
|
|
|
<BR>
|
|
Gets a response header value.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> java.awt.Image</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/lobobrowser/html/HttpRequest.html#getResponseImage()">getResponseImage</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Gets the request response as an AWT image.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> java.lang.String</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/lobobrowser/html/HttpRequest.html#getResponseText()">getResponseText</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Gets the request response as text.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> org.w3c.dom.Document</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/lobobrowser/html/HttpRequest.html#getResponseXML()">getResponseXML</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Gets the request response as an XML DOM.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/lobobrowser/html/HttpRequest.html#getStatus()">getStatus</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Gets the status of the response.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> java.lang.String</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/lobobrowser/html/HttpRequest.html#getStatusText()">getStatusText</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Gets the status text of the request, e.g.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/lobobrowser/html/HttpRequest.html#open(java.lang.String, java.lang.String)">open</A></B>(java.lang.String method,
|
|
java.lang.String url)</CODE>
|
|
|
|
<BR>
|
|
Starts an asynchronous request.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/lobobrowser/html/HttpRequest.html#open(java.lang.String, java.lang.String, boolean)">open</A></B>(java.lang.String method,
|
|
java.lang.String url,
|
|
boolean asyncFlag)</CODE>
|
|
|
|
<BR>
|
|
Opens a request.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/lobobrowser/html/HttpRequest.html#open(java.lang.String, java.net.URL)">open</A></B>(java.lang.String method,
|
|
java.net.URL url)</CODE>
|
|
|
|
<BR>
|
|
Opens an asynchronous request.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/lobobrowser/html/HttpRequest.html#open(java.lang.String, java.net.URL, boolean)">open</A></B>(java.lang.String method,
|
|
java.net.URL url,
|
|
boolean asyncFlag)</CODE>
|
|
|
|
<BR>
|
|
Opens an request.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/lobobrowser/html/HttpRequest.html#open(java.lang.String, java.net.URL, boolean, java.lang.String)">open</A></B>(java.lang.String method,
|
|
java.net.URL url,
|
|
boolean asyncFlag,
|
|
java.lang.String userName)</CODE>
|
|
|
|
<BR>
|
|
Opens a request.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/lobobrowser/html/HttpRequest.html#open(java.lang.String, java.net.URL, boolean, java.lang.String, java.lang.String)">open</A></B>(java.lang.String method,
|
|
java.net.URL url,
|
|
boolean asyncFlag,
|
|
java.lang.String userName,
|
|
java.lang.String password)</CODE>
|
|
|
|
<BR>
|
|
Opens a request.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../org/lobobrowser/html/HttpRequest.html#send(java.lang.String)">send</A></B>(java.lang.String content)</CODE>
|
|
|
|
<BR>
|
|
Sends POST content if any.</TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<P>
|
|
|
|
<!-- ============ FIELD DETAIL =========== -->
|
|
|
|
<A NAME="field_detail"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
|
<B>Field Detail</B></FONT></TH>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<A NAME="STATE_UNINITIALIZED"><!-- --></A><H3>
|
|
STATE_UNINITIALIZED</H3>
|
|
<PRE>
|
|
static final int <B>STATE_UNINITIALIZED</B></PRE>
|
|
<DL>
|
|
<DD>The uninitialized request state.
|
|
<P>
|
|
<DL>
|
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.lobobrowser.html.HttpRequest.STATE_UNINITIALIZED">Constant Field Values</A></DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="STATE_LOADING"><!-- --></A><H3>
|
|
STATE_LOADING</H3>
|
|
<PRE>
|
|
static final int <B>STATE_LOADING</B></PRE>
|
|
<DL>
|
|
<DD>The loading request state. The <code>open</code> method
|
|
has been called, but a response has not been received yet.
|
|
<P>
|
|
<DL>
|
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.lobobrowser.html.HttpRequest.STATE_LOADING">Constant Field Values</A></DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="STATE_LOADED"><!-- --></A><H3>
|
|
STATE_LOADED</H3>
|
|
<PRE>
|
|
static final int <B>STATE_LOADED</B></PRE>
|
|
<DL>
|
|
<DD>The loaded request state. Headers and status are now available.
|
|
<P>
|
|
<DL>
|
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.lobobrowser.html.HttpRequest.STATE_LOADED">Constant Field Values</A></DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="STATE_INTERACTIVE"><!-- --></A><H3>
|
|
STATE_INTERACTIVE</H3>
|
|
<PRE>
|
|
static final int <B>STATE_INTERACTIVE</B></PRE>
|
|
<DL>
|
|
<DD>The interactive request state. Downloading response.
|
|
<P>
|
|
<DL>
|
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.lobobrowser.html.HttpRequest.STATE_INTERACTIVE">Constant Field Values</A></DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="STATE_COMPLETE"><!-- --></A><H3>
|
|
STATE_COMPLETE</H3>
|
|
<PRE>
|
|
static final int <B>STATE_COMPLETE</B></PRE>
|
|
<DL>
|
|
<DD>The complete request state. All operations are finished.
|
|
<P>
|
|
<DL>
|
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.lobobrowser.html.HttpRequest.STATE_COMPLETE">Constant Field Values</A></DL>
|
|
</DL>
|
|
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
|
|
<A NAME="method_detail"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
|
<B>Method Detail</B></FONT></TH>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<A NAME="getReadyState()"><!-- --></A><H3>
|
|
getReadyState</H3>
|
|
<PRE>
|
|
int <B>getReadyState</B>()</PRE>
|
|
<DL>
|
|
<DD>Gets the state of the request, a value
|
|
between 0 and 4.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>A value corresponding to one of the STATE* constants in this class.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getResponseText()"><!-- --></A><H3>
|
|
getResponseText</H3>
|
|
<PRE>
|
|
java.lang.String <B>getResponseText</B>()</PRE>
|
|
<DL>
|
|
<DD>Gets the request response as text.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getResponseXML()"><!-- --></A><H3>
|
|
getResponseXML</H3>
|
|
<PRE>
|
|
org.w3c.dom.Document <B>getResponseXML</B>()</PRE>
|
|
<DL>
|
|
<DD>Gets the request response as an XML DOM.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getResponseImage()"><!-- --></A><H3>
|
|
getResponseImage</H3>
|
|
<PRE>
|
|
java.awt.Image <B>getResponseImage</B>()</PRE>
|
|
<DL>
|
|
<DD>Gets the request response as an AWT image.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getResponseBytes()"><!-- --></A><H3>
|
|
getResponseBytes</H3>
|
|
<PRE>
|
|
byte[] <B>getResponseBytes</B>()</PRE>
|
|
<DL>
|
|
<DD>Gets the request response bytes.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getStatus()"><!-- --></A><H3>
|
|
getStatus</H3>
|
|
<PRE>
|
|
int <B>getStatus</B>()</PRE>
|
|
<DL>
|
|
<DD>Gets the status of the response. Note that this
|
|
can be 0 for file requests in addition to 200
|
|
for successful HTTP requests.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getStatusText()"><!-- --></A><H3>
|
|
getStatusText</H3>
|
|
<PRE>
|
|
java.lang.String <B>getStatusText</B>()</PRE>
|
|
<DL>
|
|
<DD>Gets the status text of the request, e.g. "OK" for 200.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="abort()"><!-- --></A><H3>
|
|
abort</H3>
|
|
<PRE>
|
|
void <B>abort</B>()</PRE>
|
|
<DL>
|
|
<DD>Aborts an ongoing request.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getAllResponseHeaders()"><!-- --></A><H3>
|
|
getAllResponseHeaders</H3>
|
|
<PRE>
|
|
java.lang.String <B>getAllResponseHeaders</B>()</PRE>
|
|
<DL>
|
|
<DD>Gets a string with all the response headers.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getResponseHeader(java.lang.String)"><!-- --></A><H3>
|
|
getResponseHeader</H3>
|
|
<PRE>
|
|
java.lang.String <B>getResponseHeader</B>(java.lang.String headerName)</PRE>
|
|
<DL>
|
|
<DD>Gets a response header value.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>headerName</CODE> - The name of the header.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="open(java.lang.String, java.lang.String)"><!-- --></A><H3>
|
|
open</H3>
|
|
<PRE>
|
|
void <B>open</B>(java.lang.String method,
|
|
java.lang.String url)
|
|
throws java.io.IOException</PRE>
|
|
<DL>
|
|
<DD>Starts an asynchronous request.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>method</CODE> - The request method.<DD><CODE>url</CODE> - The destination URL.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="open(java.lang.String, java.net.URL)"><!-- --></A><H3>
|
|
open</H3>
|
|
<PRE>
|
|
void <B>open</B>(java.lang.String method,
|
|
java.net.URL url)
|
|
throws java.io.IOException</PRE>
|
|
<DL>
|
|
<DD>Opens an asynchronous request.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>method</CODE> - The request method.<DD><CODE>url</CODE> - The destination URL.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="open(java.lang.String, java.net.URL, boolean)"><!-- --></A><H3>
|
|
open</H3>
|
|
<PRE>
|
|
void <B>open</B>(java.lang.String method,
|
|
java.net.URL url,
|
|
boolean asyncFlag)
|
|
throws java.io.IOException</PRE>
|
|
<DL>
|
|
<DD>Opens an request.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>method</CODE> - The request method.<DD><CODE>url</CODE> - The destination URL.<DD><CODE>asyncFlag</CODE> - Whether the request is asynchronous.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="open(java.lang.String, java.lang.String, boolean)"><!-- --></A><H3>
|
|
open</H3>
|
|
<PRE>
|
|
void <B>open</B>(java.lang.String method,
|
|
java.lang.String url,
|
|
boolean asyncFlag)
|
|
throws java.io.IOException</PRE>
|
|
<DL>
|
|
<DD>Opens a request.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>method</CODE> - The request method.<DD><CODE>url</CODE> - The destination URL.<DD><CODE>asyncFlag</CODE> - Whether the request should be asynchronous.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="open(java.lang.String, java.net.URL, boolean, java.lang.String)"><!-- --></A><H3>
|
|
open</H3>
|
|
<PRE>
|
|
void <B>open</B>(java.lang.String method,
|
|
java.net.URL url,
|
|
boolean asyncFlag,
|
|
java.lang.String userName)
|
|
throws java.io.IOException</PRE>
|
|
<DL>
|
|
<DD>Opens a request.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>method</CODE> - The request method.<DD><CODE>url</CODE> - The destination URL.<DD><CODE>asyncFlag</CODE> - Whether the request should be asynchronous.<DD><CODE>userName</CODE> - The HTTP authentication user name.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="open(java.lang.String, java.net.URL, boolean, java.lang.String, java.lang.String)"><!-- --></A><H3>
|
|
open</H3>
|
|
<PRE>
|
|
void <B>open</B>(java.lang.String method,
|
|
java.net.URL url,
|
|
boolean asyncFlag,
|
|
java.lang.String userName,
|
|
java.lang.String password)
|
|
throws java.io.IOException</PRE>
|
|
<DL>
|
|
<DD>Opens a request.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>method</CODE> - The request method.<DD><CODE>url</CODE> - The destination URL.<DD><CODE>asyncFlag</CODE> - Whether the request should be asynchronous.<DD><CODE>userName</CODE> - The HTTP authentication user name.<DD><CODE>password</CODE> - The HTTP authentication password.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="send(java.lang.String)"><!-- --></A><H3>
|
|
send</H3>
|
|
<PRE>
|
|
void <B>send</B>(java.lang.String content)
|
|
throws java.io.IOException</PRE>
|
|
<DL>
|
|
<DD>Sends POST content if any.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>content</CODE> - POST content or <code>null</code> for GET requests.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="addReadyStateChangeListener(org.lobobrowser.html.ReadyStateChangeListener)"><!-- --></A><H3>
|
|
addReadyStateChangeListener</H3>
|
|
<PRE>
|
|
void <B>addReadyStateChangeListener</B>(<A HREF="../../../org/lobobrowser/html/ReadyStateChangeListener.html" title="interface in org.lobobrowser.html">ReadyStateChangeListener</A> listener)</PRE>
|
|
<DL>
|
|
<DD>Adds a listener of ReadyState changes. The listener should be invoked
|
|
even in the case of errors.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>listener</CODE> - An instanceof of <A HREF="../../../org/lobobrowser/html/ReadyStateChangeListener.html" title="interface in org.lobobrowser.html"><CODE>ReadyStateChangeListener</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
<HR>
|
|
|
|
|
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
|
<A NAME="navbar_bottom"><!-- --></A>
|
|
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
|
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
|
<TR>
|
|
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
|
<A NAME="navbar_bottom_firstrow"><!-- --></A>
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
|
<TR ALIGN="center" VALIGN="top">
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/HttpRequest.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
|
</TR>
|
|
</TABLE>
|
|
</TD>
|
|
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
|
</EM>
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../../../org/lobobrowser/html/HtmlRendererContext.html" title="interface in org.lobobrowser.html"><B>PREV CLASS</B></A>
|
|
<A HREF="../../../org/lobobrowser/html/ReadyStateChangeListener.html" title="interface in org.lobobrowser.html"><B>NEXT CLASS</B></A></FONT></TD>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../../../index.html?org/lobobrowser/html/HttpRequest.html" target="_top"><B>FRAMES</B></A>
|
|
<A HREF="HttpRequest.html" target="_top"><B>NO FRAMES</B></A>
|
|
<SCRIPT type="text/javascript">
|
|
<!--
|
|
if(window==top) {
|
|
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
|
}
|
|
//-->
|
|
</SCRIPT>
|
|
<NOSCRIPT>
|
|
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
|
|
</NOSCRIPT>
|
|
|
|
|
|
</FONT></TD>
|
|
</TR>
|
|
<TR>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="skip-navbar_bottom"></A>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
|
|
<HR>
|
|
|
|
<a href='http://sourceforge.net' target='_top'><img align='right' hspace='4' src='http://sourceforge.net/sflogo.php?group_id=139023&type=4' width='125' height='37' border='0' alt='SourceForge.net Logo'/></a><i>Copyright © 2005, 2006, 2007 The Lobo Project. All Rights Reserved.</i><br>[<a href='http://lobobrowser.org/cobra.jsp' target='_top'>Cobra Project Home</a>]
|
|
|
|
<div id='adbox' style='position: absolute; top: 6.0em; right: 8px; display: none; background: white; border: #100030 solid 2px; padding: 4px; background-color: #FFFF90'>
|
|
<!-- adsense start -->
|
|
<form action=http://lobobrowser.org/api-searchresults.jsp id=cse-search-box target=_top>
|
|
<div>
|
|
<input type=hidden name=cx value=partner-pub-9179280249786862:aa7aazd6e58 />
|
|
<input type=hidden name=cof value=FORID:10 />
|
|
<input type=hidden name=ie value=ISO-8859-1 />
|
|
<input type=text name=q size=10 />
|
|
<input type=submit name=sa value=Search />
|
|
</div>
|
|
</form>
|
|
<script type=text/javascript src=http://www.google.com/coop/cse/brand?form=cse-search-box&lang=en></script>
|
|
<!-- adsense end -->
|
|
</div>
|
|
|
|
<script><!--
|
|
if(!document.iSkipCornerAd) {
|
|
var iAdBox = document.getElementById('adbox');
|
|
iAdBox.style.display = 'block';
|
|
}
|
|
//-->
|
|
</script>
|
|
|
|
|
|
</BODY>
|
|
</HTML>
|