class LiteXmlRpcTransport extends java.lang.Object implements XmlRpcTransport
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
auth |
(package private) byte[] |
buffer |
(package private) java.lang.String |
host |
(package private) java.lang.String |
hostname |
(package private) java.io.BufferedInputStream |
input |
(package private) boolean |
keepalive |
(package private) java.io.BufferedOutputStream |
output |
(package private) int |
port |
(package private) java.net.Socket |
socket |
(package private) java.lang.String |
uri |
Constructor and Description |
---|
LiteXmlRpcTransport(java.net.URL url)
Create a new DefaultXmlRpcTransport with the specified URL.
|
Modifier and Type | Method and Description |
---|---|
protected void |
closeConnection() |
void |
endClientRequest()
End an XML-RPC request.
|
protected void |
finalize() |
protected void |
initConnection() |
private java.lang.String |
readLine() |
java.io.InputStream |
sendRequest(byte[] request) |
java.io.InputStream |
sendXmlRpc(byte[] request)
Send an XML-RPC message.
|
void |
setBasicAuthentication(java.lang.String user,
java.lang.String password)
Sets Authentication for this client.
|
java.lang.String hostname
java.lang.String host
protected java.lang.String auth
int port
java.lang.String uri
java.net.Socket socket
java.io.BufferedOutputStream output
java.io.BufferedInputStream input
boolean keepalive
byte[] buffer
public LiteXmlRpcTransport(java.net.URL url)
url
- the url to POST XML-RPC requests to.public java.io.InputStream sendXmlRpc(byte[] request) throws java.io.IOException
XmlRpcTransport
sendXmlRpc
in interface XmlRpcTransport
request
- the request in network encoding.java.io.IOException
- if an IOException occurs in the IO level of the transport.protected void initConnection() throws java.io.IOException
java.io.IOException
protected void closeConnection()
public java.io.InputStream sendRequest(byte[] request) throws java.io.IOException
request
- java.io.IOException
public void setBasicAuthentication(java.lang.String user, java.lang.String password)
public void endClientRequest()
XmlRpcTransport
endClientRequest
in interface XmlRpcTransport
private java.lang.String readLine() throws java.io.IOException
java.io.IOException
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
Copyright ? 1999-2002 Apache Software Foundation. All Rights Reserved.