peaklau.eaglefund
Class HttpClient

java.lang.Object
  extended by peaklau.eaglefund.HttpClient

public class HttpClient
extends java.lang.Object

HttpClient class
do http get or post

Version:
$Revision: 1.2 $ $Date: 2007/10/21 14:26:24 $
Author:
peaklau
email:peaklau@hotmail.com
HomePage

Field Summary
static int BUFFER_SIZE
           
static int CONTENT_TYPE_IMAGE
           
static int CONTENT_TYPE_TEXT
           
 
Constructor Summary
HttpClient()
           
 
Method Summary
 int getContentType()
           
 byte[] getData()
           
 int getSize()
           
 void httpGet(java.lang.String url)
           
 void httpPost(java.lang.String url, java.lang.String postData)
           
 void reflesh()
           
 void setRequestHeaders(javax.microedition.io.HttpConnection c)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUFFER_SIZE

public static final int BUFFER_SIZE
See Also:
Constant Field Values

CONTENT_TYPE_TEXT

public static int CONTENT_TYPE_TEXT

CONTENT_TYPE_IMAGE

public static int CONTENT_TYPE_IMAGE
Constructor Detail

HttpClient

public HttpClient()
Method Detail

httpGet

public void httpGet(java.lang.String url)
             throws java.lang.Exception
Throws:
java.lang.Exception

httpPost

public void httpPost(java.lang.String url,
                     java.lang.String postData)
              throws java.lang.Exception
Throws:
java.lang.Exception

getContentType

public int getContentType()

getData

public byte[] getData()

getSize

public int getSize()

setRequestHeaders

public void setRequestHeaders(javax.microedition.io.HttpConnection c)
                       throws java.io.IOException
Throws:
java.io.IOException

reflesh

public void reflesh()
             throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2007-2009 peaklau. All Rights Reserved.