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.IOException
public void close() throws java.io.IOException, XMLParseException
java.io.IOException
XMLParseException
public 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.IOException
public org.w3c.dom.Document readAnswer() throws java.io.IOException, XMLParseException
java.io.IOException
XMLParseException
Copyright © 2023. All rights reserved.