|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sibvisions.util.type.HttpUtil
public final class HttpUtil
The HttpUtil is a utility class for http communication.
| Method Summary | |
|---|---|
static InputStream |
get(String pURL)
Sends a get request. |
static InputStream |
post(String pURL)
Sends an empty post request. |
static InputStream |
post(String pURL,
File pFile)
Sends a post request with given file. |
static InputStream |
post(String pURL,
InputStream pStream)
Sends a post request with given data. |
static InputStream |
post(String pURL,
InputStream pStream,
String pFileName)
Sends a post request with given content. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static InputStream post(String pURL)
throws Exception
pURL - the URL
Exception - if communication failed
public static InputStream post(String pURL,
InputStream pStream)
throws Exception
pURL - the URLpStream - the content to send
Exception - if communication failed
public static InputStream post(String pURL,
File pFile)
throws Exception
pURL - the URLpFile - the file
Exception - if communication failed
public static InputStream post(String pURL,
InputStream pStream,
String pFileName)
throws Exception
pURL - the URLpStream - the content to sendpFileName - the file name
Exception - if communication failed
public static InputStream get(String pURL)
throws Exception
pURL - the URL
Exception - if communication failed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||