Package featurecat.lizzie.util
Class AjaxHttpRequest
java.lang.Object
featurecat.lizzie.util.AjaxHttpRequest
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
abort()
protected void
changeState
(int readyState, int status, String statusMessage, byte[] bytes) protected String
static String
getCharset
(URLConnection connection) static String
int
getRequestHeader
(String key) protected void
protected static byte[]
loadStream
(InputStream in, int initialBufferSize) void
void
void
void
void
void
protected void
void
void
setRequestHeader
(String key, String value) static String
-
Field Details
-
STATE_UNINITIALIZED
public static final int STATE_UNINITIALIZED- See Also:
-
STATE_LOADING
public static final int STATE_LOADING- See Also:
-
STATE_LOADED
public static final int STATE_LOADED- See Also:
-
STATE_INTERACTIVE
public static final int STATE_INTERACTIVE- See Also:
-
STATE_COMPLETE
public static final int STATE_COMPLETE- See Also:
-
DEFAULT_AJAX_CHARSET
- See Also:
-
DEFAULT_HTTP_CHARSET
- See Also:
-
DEFAULT_REQUEST_METHOD
- See Also:
-
requestMethod
-
requestUserName
-
requestPassword
-
-
Constructor Details
-
AjaxHttpRequest
public AjaxHttpRequest()
-
-
Method Details
-
setRequestHeader
-
getReadyState
public int getReadyState() -
open
- Throws:
IOException
-
open
- Throws:
IOException
-
open
public void open(String method, String url, boolean async, String userName, String password) throws IOException - Throws:
IOException
-
open
public void open(String method, URL url, boolean async, String userName, String password) throws IOException - Throws:
IOException
-
send
- Throws:
IOException
-
send
- Throws:
IOException
-
getResponseText
-
setReadyStateChangeListener
-
abort
public void abort() -
sendSync
- Throws:
IOException
-
changeState
-
encode
-
initConnectionRequestHeader
-
getRequestHeader
-
removeRequestHeader
-
getConnectionResponseHeaders
-
getCharset
-
unquote
-
loadStream
- Throws:
IOException
-