edu.gmu.laits.util
Class WebData

java.lang.Object
  |
  +--edu.gmu.laits.util.WebData

public class WebData
extends java.lang.Object


Constructor Summary
WebData()
           
 
Method Summary
static java.io.InputStream InGet(java.net.URL url)
          GET method
static java.io.InputStream InPost(java.net.URL url, java.lang.String para)
          POST method
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebData

public WebData()
Method Detail

InGet

public static java.io.InputStream InGet(java.net.URL url)
                                 throws java.lang.Exception
GET method

Parameters:
url - connection point
Returns:
input stream
Throws:
java.lang.Exception

InPost

public static java.io.InputStream InPost(java.net.URL url,
                                         java.lang.String para)
                                  throws java.lang.Exception
POST method

Parameters:
url - connection point
para - post string
Returns:
input stream
Throws:
java.lang.Exception