org.apache.xmlrpc

Class LiteXmlRpcTransport

Implemented Interfaces:
XmlRpcTransport

(package private) class LiteXmlRpcTransport
extends java.lang.Object
implements XmlRpcTransport

Interface from XML-RPC to a 'lite' HTTP implementation. This class will use the XmlRpcClientLite.auth member for the HTTP Basic authentication string.
Version:
$Id: LiteXmlRpcTransport.java 233919 2005-04-22 10:26:17Z hgomez $
Authors:
Hannes Wallnoefer
Andrew Evers
Since:
1.2

Field Summary

protected String
auth
(package private) byte[]
buffer
(package private) String
host
(package private) String
hostname
(package private) BufferedInputStream
input
(package private) boolean
keepalive
(package private) BufferedOutputStream
output
(package private) int
port
(package private) Socket
socket
(package private) String
uri

Constructor Summary

LiteXmlRpcTransport(URL url)
Create a new DefaultXmlRpcTransport with the specified URL.

Method Summary

protected void
closeConnection()
void
endClientRequest()
protected void
finalize()
protected void
initConnection()
private String
readLine()
InputStream
sendRequest(byte[] request)
InputStream
sendXmlRpc(byte[] request)
void
setBasicAuthentication(String user, String password)
Sets Authentication for this client.

Field Details

auth

protected String auth

buffer

(package private)  byte[] buffer

host

(package private)  String host

hostname

(package private)  String hostname

input

(package private)  BufferedInputStream input

keepalive

(package private)  boolean keepalive

output

(package private)  BufferedOutputStream output

port

(package private)  int port

socket

(package private)  Socket socket

uri

(package private)  String uri

Constructor Details

LiteXmlRpcTransport

public LiteXmlRpcTransport(URL url)
Create a new DefaultXmlRpcTransport with the specified URL.
Parameters:
url - the url to POST XML-RPC requests to.

Method Details

closeConnection

protected void closeConnection()

endClientRequest

public void endClientRequest()
Specified by:
endClientRequest in interface XmlRpcTransport

finalize

protected void finalize()
            throws Throwable

initConnection

protected void initConnection()
            throws IOException

readLine

private String readLine()
            throws IOException
Returns:

sendRequest

public InputStream sendRequest(byte[] request)
            throws IOException
Parameters:
request -
Returns:

sendXmlRpc

public InputStream sendXmlRpc(byte[] request)
            throws IOException
Specified by:
sendXmlRpc in interface XmlRpcTransport

setBasicAuthentication

public void setBasicAuthentication(String user,
                                   String password)

Copyright B) 1999-2002 Apache Software Foundation. All Rights Reserved.