|
|||||||||
| Home >> All >> org >> apache >> [ xmlrpc overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.xmlrpc
Class LiteXmlRpcTransport

java.lang.Objectorg.apache.xmlrpc.LiteXmlRpcTransport
- All Implemented Interfaces:
- XmlRpcTransport
- class LiteXmlRpcTransport
- extends java.lang.Object
- implements XmlRpcTransport
- extends java.lang.Object
Interface from XML-RPC to a 'lite' HTTP implementation. This class will use the XmlRpcClientLite.auth member for the HTTP Basic authentication string.
- Since:
- 1.2
- Version:
- $Id: LiteXmlRpcTransport.java,v 1.6 2005/04/22 10:25:57 hgomez Exp $
| Field Summary | |
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 Summary | |
LiteXmlRpcTransport(java.net.URL url)
Create a new DefaultXmlRpcTransport with the specified URL. |
|
| Method Summary | |
protected void |
closeConnection()
|
void |
endClientRequest()
End an XML-RPC request. |
protected void |
finalize()
Called on an object by the Virtual Machine at most once, at some point after the Object is determined unreachable but before it is destroyed. |
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. |
| 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
auth
protected java.lang.String auth
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 |
LiteXmlRpcTransport
public LiteXmlRpcTransport(java.net.URL url)
- Create a new DefaultXmlRpcTransport with the specified URL.
| Method Detail |
sendXmlRpc
public java.io.InputStream sendXmlRpc(byte[] request) throws java.io.IOException
- Description copied from interface:
XmlRpcTransport - Send an XML-RPC message. This method is called to send a message to the
other party.
- Specified by:
sendXmlRpcin interfaceXmlRpcTransport
initConnection
protected void initConnection()
throws java.io.IOException
closeConnection
protected void closeConnection()
sendRequest
public java.io.InputStream sendRequest(byte[] request) throws java.io.IOException
setBasicAuthentication
public void setBasicAuthentication(java.lang.String user, java.lang.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.
endClientRequest
public void endClientRequest()
- Description copied from interface:
XmlRpcTransport - End an XML-RPC request. This method is called by the XmlRpcClient when then
request has been sent and the response (or an exception) recieved.
- Specified by:
endClientRequestin interfaceXmlRpcTransport
readLine
private java.lang.String readLine() throws java.io.IOException
finalize
protected void finalize()
throws java.lang.Throwable
- Description copied from class:
java.lang.Object - Called on an object by the Virtual Machine at most once,
at some point after the Object is determined unreachable
but before it is destroyed. You would think that this
means it eventually is called on every Object, but this is
not necessarily the case. If execution terminates
abnormally, garbage collection does not always happen.
Thus you cannot rely on this method to always work.
For finer control over garbage collection, use references
from the
java.lang.refpackage.Virtual Machines are free to not call this method if they can determine that it does nothing important; for example, if your class extends Object and overrides finalize to do simply
super.finalize().finalize() will be called by a java.lang.Thread that has no locks on any Objects, and may be called concurrently. There are no guarantees on the order in which multiple objects are finalized. This means that finalize() is usually unsuited for performing actions that must be thread-safe, and that your implementation must be use defensive programming if it is to always work.
If an Exception is thrown from finalize() during garbage collection, it will be patently ignored and the Object will still be destroyed.
It is allowed, although not typical, for user code to call finalize() directly. User invocation does not affect whether automatic invocation will occur. It is also permitted, although not recommended, for a finalize() method to "revive" an object by making it reachable from normal code again.
Unlike constructors, finalize() does not get called for an object's superclass unless the implementation specifically calls
super.finalize().The default implementation does nothing.
|
|||||||||
| Home >> All >> org >> apache >> [ xmlrpc overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.apache.xmlrpc.LiteXmlRpcTransport