|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ksoap2.transport.ServiceConnectionSE
public class ServiceConnectionSE
Connection for J2SE environments.
Constructor Summary | |
---|---|
ServiceConnectionSE(java.lang.String url)
Constructor taking the url to the endpoint for this soap communication |
Method Summary | |
---|---|
void |
connect()
Make an outgoing connection. |
void |
disconnect()
Disconnect from the outgoing connection |
java.io.InputStream |
getErrorStream()
|
java.io.InputStream |
openInputStream()
Opens and returns the inputstream from which to parse the result of the soap call. |
java.io.OutputStream |
openOutputStream()
Open and return the outputStream to the endpoint. |
void |
setRequestMethod(java.lang.String requestMethod)
Sets how to make the requests. |
void |
setRequestProperty(java.lang.String string,
java.lang.String soapAction)
Set properties on the outgoing connection. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceConnectionSE(java.lang.String url) throws java.io.IOException
url
- the url to open the connection to.
java.io.IOException
Method Detail |
---|
public void connect() throws java.io.IOException
ServiceConnection
connect
in interface ServiceConnection
java.io.IOException
public void disconnect()
ServiceConnection
disconnect
in interface ServiceConnection
public void setRequestProperty(java.lang.String string, java.lang.String soapAction)
ServiceConnection
setRequestProperty
in interface ServiceConnection
string
- the name of the property to set. For HTTP connections these
are the request properties in the HTTP Header.soapAction
- the string to set the property header to.public void setRequestMethod(java.lang.String requestMethod) throws java.io.IOException
ServiceConnection
setRequestMethod
in interface ServiceConnection
requestMethod
- the type of request method to make the soap call with.
java.io.IOException
public java.io.OutputStream openOutputStream() throws java.io.IOException
ServiceConnection
openOutputStream
in interface ServiceConnection
java.io.IOException
public java.io.InputStream openInputStream() throws java.io.IOException
ServiceConnection
openInputStream
in interface ServiceConnection
java.io.IOException
public java.io.InputStream getErrorStream()
getErrorStream
in interface ServiceConnection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |