public final class HttpClient
extends java.lang.Object
| Constructor and Description |
|---|
HttpClient(java.net.Socket socket)
Klasse zum Senden von Http-Request und empfangen der Antwort.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Schlie�t die Http-Verbindung.
|
org.w3c.dom.Document |
readAnswer()
Einlesen der Http-Antwort.
|
void |
writeRequest(java.lang.String method,
java.lang.String url,
java.lang.String data)
Sendet Http-Request.
|
public HttpClient(java.net.Socket socket)
throws java.io.IOException
socket - Socket, �ber dem die Http-Verbindung l�uft.java.io.IOExceptionpublic void close()
throws java.io.IOException,
XMLParseException
java.io.IOExceptionXMLParseExceptionpublic void writeRequest(java.lang.String method,
java.lang.String url,
java.lang.String data)
throws java.io.IOException
method - Http-Methode (GET / POST)url - URLdata - Im Body zu �bermittelnde Datenjava.io.IOExceptionpublic org.w3c.dom.Document readAnswer()
throws java.io.IOException,
XMLParseException
java.io.IOExceptionXMLParseExceptionCopyright © 2023. All rights reserved.