|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xmlrpc.LiteXmlRpcTransport
class LiteXmlRpcTransport
Interface from XML-RPC to a 'lite' HTTP implementation. This class will use the XmlRpcClientLite.auth member for the HTTP Basic authentication string.
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()
|
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 |
---|
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
Constructor Detail |
---|
public LiteXmlRpcTransport(java.net.URL url)
url
- the url to POST XML-RPC requests to.Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |