org.apache.xmlrpc

Class DefaultXmlRpcTransport

public class DefaultXmlRpcTransport extends Object implements XmlRpcTransport

Interface from XML-RPC to the default HTTP transport based on the

Since: 1.2

Version: $Id: DefaultXmlRpcTransport.java 233919 2005-04-22 10:26:17Z hgomez $

Author: Hannes Wallnoefer Andrew Evers Ryan Hoegg

See Also: java.net.URLConnection class.

Field Summary
protected Stringauth
protected URLConnectioncon
protected URLurl
Constructor Summary
DefaultXmlRpcTransport(URL url, String auth)
Create a new DefaultXmlRpcTransport with the specified URL and basic authorization string.
DefaultXmlRpcTransport(URL url)
Create a new DefaultXmlRpcTransport with the specified URL.
Method Summary
voidendClientRequest()
InputStreamsendXmlRpc(byte[] request)
voidsetBasicAuthentication(String user, String password)
Sets Authentication for this client.

Field Detail

auth

protected String auth

con

protected URLConnection con

url

protected URL url

Constructor Detail

DefaultXmlRpcTransport

public DefaultXmlRpcTransport(URL url, String auth)

Deprecated: Use setBasicAuthentication instead of passing an encoded authentication String.

Create a new DefaultXmlRpcTransport with the specified URL and basic authorization string.

Parameters: url the url to POST XML-RPC requests to. auth the Base64 encoded HTTP Basic authentication value.

DefaultXmlRpcTransport

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

Parameters: url the url to POST XML-RPC requests to.

Method Detail

endClientRequest

public void endClientRequest()

sendXmlRpc

public InputStream sendXmlRpc(byte[] request)

setBasicAuthentication

public void setBasicAuthentication(String user, String password)
Sets Authentication for this client. This will be sent as Basic Authentication header to the server as described in http://www.ietf.org/rfc/rfc2617.txt.
Copyright B) 1999-2002 Apache Software Foundation. All Rights Reserved.