Package jp.cssj.driver.ctip
Class CTIPDriver
java.lang.Object
jp.cssj.driver.ctip.CTIPDriver
- All Implemented Interfaces:
CTIDriver
A driver (client library) that uses socket communication.
The URI format is ctip://hostname:port/.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSession(URI uri, Map<String, String> props) Creates a session.booleanReturns whether this driver supports the specified URI.
-
Field Details
-
ENCODING
- See Also:
-
-
Constructor Details
-
CTIPDriver
public CTIPDriver()
-
-
Method Details
-
match
Description copied from interface:CTIDriverReturns whether this driver supports the specified URI. -
getSession
Description copied from interface:CTIDriverCreates a session.The URI format depends on the driver type. Drivers for the CTIP and HTTP/REST protocols are currently available.
For a CTIP connection, use a URI in the form "ctip://hostname:port/". To connect to a server that only supports CTIP 1.0 (Copper PDF 2.0 or earlier, or CSSJ), add the query parameter version=1, using the form "ctip://hostname:port/?version=1".
For an HTTP/REST connection, use a URI in the form "http://hostname:port/". Remember the trailing slash.
- Specified by:
getSessionin interfaceCTIDriver- Parameters:
uri- The connection URI.props- Connection property key-value pairs. The "user" key specifies the username; the "password" key specifies the password.- Returns:
- The session.
- Throws:
IOException
-