|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sibvisions.rad.remote.AbstractSerializedConnection
com.sibvisions.rad.remote.http.HttpConnection
public class HttpConnection
The HttpConnection
communicates with the remote server via http
protocol.
Field Summary | |
---|---|
static String |
PREFIX_HTTP
the prefix for request properties. |
static String |
PROP_SERVICE
the property name for the servlet url. |
Fields inherited from class com.sibvisions.rad.remote.AbstractSerializedConnection |
---|
PROP_SERIALIZER |
Constructor Summary | |
---|---|
HttpConnection(ISerializer pSerializer,
String pServletURL)
Creates a new instance of HttpConnection . |
|
HttpConnection(Properties pProperties)
Creates a new instance of HttpConnection with
properties instead of many parameters. |
|
HttpConnection(String pServletURL)
Creates a new instance of HttpConnection with the default
serializer. |
Method Summary | |
---|---|
InputStream |
getInputStream(ConnectionInfo pConnectionInfo)
Gets the InputStream for reading the response from the
server. |
OutputStream |
getOutputStream(ConnectionInfo pConnectionInfo)
Gets the OutputStream for submitting requests to the
server. |
String |
getServletURL()
Gets the servlet URL to access the remote server. |
void |
setConnectionTimeout(int pTimeout)
Sets the timeout for the connection establishment. |
Methods inherited from class com.sibvisions.rad.remote.AbstractSerializedConnection |
---|
call, close, createSerializer, finalize, getProperties, getProperty, isCalling, isOpen, open, openSub, reopen, setAndCheckAlive, setNewPassword, setProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PREFIX_HTTP
public static final String PROP_SERVICE
Constructor Detail |
---|
public HttpConnection(Properties pProperties) throws MalformedURLException, NoSuchAlgorithmException, KeyManagementException, ClassNotFoundException
HttpConnection
with
properties instead of many parameters. The supported property
keys are:
pProperties
- the properties for the connection
MalformedURLException
- if the servlet URL is not valid
NoSuchAlgorithmException
- if the specified protocol is not
available in the default provider package
or any of the other provider packages that
were searched.
ClassNotFoundException
- if the serializer is defined and could not be created
KeyManagementException
- if ssl operation failspublic HttpConnection(String pServletURL) throws MalformedURLException, NoSuchAlgorithmException, KeyManagementException
HttpConnection
with the default
serializer.
pServletURL
- URL to the remote server
MalformedURLException
- if the servlet URL is not valid
NoSuchAlgorithmException
- if the specified protocol is not
available in the default provider package
or any of the other provider packages that
were searched.
KeyManagementException
- if ssl operation failsAbstractSerializedConnection.AbstractSerializedConnection(ISerializer)
public HttpConnection(ISerializer pSerializer, String pServletURL) throws MalformedURLException, NoSuchAlgorithmException, KeyManagementException
HttpConnection
.
pSerializer
- the serializer for the communication between client and serverpServletURL
- URL to the remote server
MalformedURLException
- if the servlet URL is not valid
NoSuchAlgorithmException
- if the specified protocol is not
available in the default provider package
or any of the other provider packages that
were searched.
KeyManagementException
- if ssl operation failsAbstractSerializedConnection.AbstractSerializedConnection(ISerializer)
Method Detail |
---|
public OutputStream getOutputStream(ConnectionInfo pConnectionInfo) throws IOException
OutputStream
for submitting requests to the
server.
getOutputStream
in class AbstractSerializedConnection
pConnectionInfo
- the connection information
IOException
public InputStream getInputStream(ConnectionInfo pConnectionInfo) throws IOException
InputStream
for reading the response from the
server.
getInputStream
in class AbstractSerializedConnection
pConnectionInfo
- the connection information
IOException
public String getServletURL()
public void setConnectionTimeout(int pTimeout)
pTimeout
- the timeout in millis or -1 for the default timeout
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |