Package jp.cssj.cti2

Interface CTIDriver

All Known Implementing Classes:
CTIPDriver

public interface CTIDriver
A driver (client library) for connecting to a document conversion server.
  • Method Summary

    Modifier and Type
    Method
    Description
    getSession(URI uri, Map<String,String> props)
    Creates a session.
    boolean
    match(URI uri)
    Returns whether this driver supports the specified URI.
  • Method Details

    • match

      boolean match(URI uri)
      Returns whether this driver supports the specified URI.
      Parameters:
      uri - The connection URI.
      Returns:
      true if supported.
    • getSession

      CTISession getSession(URI uri, Map<String,String> props) throws IOException, SecurityException
      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.

      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
      SecurityException - if authentication fails.