Package org.apache.cayenne.rop.http
Class HttpROPConnector
java.lang.Object
org.apache.cayenne.rop.http.HttpROPConnector
- All Implemented Interfaces:
ROPConnector
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAuthHeader
(URLConnection connection) protected void
addSessionCookie
(URLConnection connection) void
close()
Close all resources related to ROP Connector.protected InputStream
doRequest
(byte[] data) protected InputStream
Establishes a dedicated session with Cayenne DataChannel, returning session id.establishSharedSession
(String sharedSessionName) Creates a new session with the specified or joins an existing one.sendMessage
(byte[] message) Processes message on a remote server, returning the result of such processing.void
setClientConnection
(HttpClientConnection clientConnection) void
setReadTimeout
(Long readTimeout)
-
Field Details
-
SESSION_COOKIE_NAME
- See Also:
-
-
Constructor Details
-
HttpROPConnector
-
-
Method Details
-
setClientConnection
-
setReadTimeout
-
establishSession
Description copied from interface:ROPConnector
Establishes a dedicated session with Cayenne DataChannel, returning session id.- Specified by:
establishSession
in interfaceROPConnector
- Throws:
IOException
-
sendMessage
Description copied from interface:ROPConnector
Processes message on a remote server, returning the result of such processing.- Specified by:
sendMessage
in interfaceROPConnector
- Throws:
IOException
-
close
Description copied from interface:ROPConnector
Close all resources related to ROP Connector.- Specified by:
close
in interfaceROPConnector
- Throws:
IOException
-
doRequest
- Throws:
IOException
-
doRequest
- Throws:
IOException
-
addAuthHeader
-
addSessionCookie
-