org.apache.xmlrpc
Class XmlRpcClientLite.HttpClient

java.lang.Object
  extended byorg.apache.xmlrpc.XmlRpcClientLite.HttpClient
Enclosing class:
XmlRpcClientLite

class XmlRpcClientLite.HttpClient
extends java.lang.Object

A replacement for java.net.URLConnection, which seems very slow on MS Java.


Field Summary
(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 Summary
XmlRpcClientLite.HttpClient(java.net.URL url)
           
 
Method Summary
protected  void closeConnection()
           
protected  void finalize()
           
protected  void initConnection()
           
private  java.lang.String readLine()
           
 java.io.InputStream sendRequest(byte[] request)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hostname

java.lang.String hostname

host

java.lang.String host

port

int port

uri

java.lang.String uri

socket

java.net.Socket socket

output

java.io.BufferedOutputStream output

input

java.io.BufferedInputStream input

keepalive

boolean keepalive

buffer

byte[] buffer
Constructor Detail

XmlRpcClientLite.HttpClient

public XmlRpcClientLite.HttpClient(java.net.URL url)
                            throws java.io.IOException
Parameters:
url -
Throws:
java.io.IOException
Method Detail

initConnection

protected void initConnection()
                       throws java.io.IOException
Throws:
java.io.IOException

closeConnection

protected void closeConnection()

sendRequest

public java.io.InputStream sendRequest(byte[] request)
                                throws java.io.IOException
Parameters:
request -
Returns:
Throws:
java.io.IOException

readLine

private java.lang.String readLine()
                           throws java.io.IOException
Returns:
Throws:
java.io.IOException

finalize

protected void finalize()
                 throws java.lang.Throwable
Throws:
java.lang.Throwable


Copyright © ${year} Apache Software Foundation. All Rights Reserved.