org.faceless.pdf2
Class DSE200HandlerFactory

java.lang.Object
  extended by org.faceless.pdf2.DSE200HandlerFactory
All Implemented Interfaces:
SignatureHandlerFactory

public class DSE200HandlerFactory
extends Object
implements SignatureHandlerFactory

An implementation of SignatureHandlerFactory returning DSE200Handler objects. See that class for more information.

Since:
2.3

Field Summary
static int HTTP
          Constant representing the HTTP protocol
static int TSP
          Constant representing the TSP protocol
 
Constructor Summary
DSE200HandlerFactory(String host, int protocol)
          Create a new DSE200HandlerFactory.
 
Method Summary
 SignatureHandler getHandler()
          Return a handler created by this factory
 void setTimeout(int timeout)
          Set how long to wait before timing out when making requests to the DSE200, in milliseonds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HTTP

public static final int HTTP
Constant representing the HTTP protocol

See Also:
Constant Field Values

TSP

public static final int TSP
Constant representing the TSP protocol

See Also:
Constant Field Values
Constructor Detail

DSE200HandlerFactory

public DSE200HandlerFactory(String host,
                            int protocol)
Create a new DSE200HandlerFactory. For signing, the host and protocol must be specified, but if the Factory is just going to be used to verify (rather than sign), the host may be null.

Parameters:
host - the hostname to connect to
protocol - the protocol to use - one of HTTP or TSP
Method Detail

setTimeout

public void setTimeout(int timeout)
Set how long to wait before timing out when making requests to the DSE200, in milliseonds. The default is 5000 (or 5 seconds)

Parameters:
timeout - the timeout to use when connecting to the DSE200, in milliseconds

getHandler

public SignatureHandler getHandler()
Description copied from interface: SignatureHandlerFactory
Return a handler created by this factory

Specified by:
getHandler in interface SignatureHandlerFactory


Copyright © 2001-2010 Big Faceless Organization