Class CTIPDriver

java.lang.Object
jp.cssj.driver.ctip.CTIPDriver
All Implemented Interfaces:
CTIDriver

public class CTIPDriver extends Object implements CTIDriver

A driver (client library) that uses socket communication.

The URI format is ctip://hostname:port/.

  • Field Details

  • Constructor Details

    • CTIPDriver

      public CTIPDriver()
  • Method Details

    • match

      public boolean match(URI uri)
      Description copied from interface: CTIDriver
      Returns whether this driver supports the specified URI.
      Specified by:
      match in interface CTIDriver
      Parameters:
      uri - The connection URI.
      Returns:
      true if supported.
    • getSession

      public CTISession getSession(URI uri, Map<String,String> props) throws IOException
      Description copied from interface: CTIDriver
      Creates 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:
      getSession in interface CTIDriver
      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