jhfc
Class HylaFaxConnectionManager

java.lang.Object
jhfc.HylaFaxConnectionManager
- public class HylaFaxConnectionManager
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
hostname
private java.lang.String hostname
port
private int port
debug
private boolean debug
CONNECTION_ALREADY_OPEN
public static final int CONNECTION_ALREADY_OPEN
- See Also:
- Constant Field Values
ABOUT_TO_OPEN_DATACON
public static final int ABOUT_TO_OPEN_DATACON
- See Also:
- Constant Field Values
COMMAND_OK
public static final int COMMAND_OK
- See Also:
- Constant Field Values
COM_NOT_IMPL_SUPERFLUOUS
public static final int COM_NOT_IMPL_SUPERFLUOUS
- See Also:
- Constant Field Values
SYSTEM_STATUS
public static final int SYSTEM_STATUS
- See Also:
- Constant Field Values
DIRECTORY_STATUS
public static final int DIRECTORY_STATUS
- See Also:
- Constant Field Values
FILE_STATUS
public static final int FILE_STATUS
- See Also:
- Constant Field Values
HELP_MESSAGE
public static final int HELP_MESSAGE
- See Also:
- Constant Field Values
CLOSING_CONNECTION
public static final int CLOSING_CONNECTION
- See Also:
- Constant Field Values
CLOSING_DATA_CONNECTION
public static final int CLOSING_DATA_CONNECTION
- See Also:
- Constant Field Values
USER_LOGGED_IN
public static final int USER_LOGGED_IN
- See Also:
- Constant Field Values
FILE_ACTION_OK
public static final int FILE_ACTION_OK
- See Also:
- Constant Field Values
NEEDS_PASSWD
public static final int NEEDS_PASSWD
- See Also:
- Constant Field Values
NEEDS_ACCOUNT
public static final int NEEDS_ACCOUNT
- See Also:
- Constant Field Values
SERVICE_NOT_AVAILABLE
public static final int SERVICE_NOT_AVAILABLE
- See Also:
- Constant Field Values
NO_DATA_CONNECTION
public static final int NO_DATA_CONNECTION
- See Also:
- Constant Field Values
CONNECTION_CLOSED
public static final int CONNECTION_CLOSED
- See Also:
- Constant Field Values
FILE_ACTION_NOT_TAKEN
public static final int FILE_ACTION_NOT_TAKEN
- See Also:
- Constant Field Values
ACTION_ABORTED_ERROR
public static final int ACTION_ABORTED_ERROR
- See Also:
- Constant Field Values
ACTION_NOT_TAKEN_SPACE
public static final int ACTION_NOT_TAKEN_SPACE
- See Also:
- Constant Field Values
FAILED_TO_KILL_JOB
public static final int FAILED_TO_KILL_JOB
- See Also:
- Constant Field Values
SYNTAX_ERROR_COMMAND
public static final int SYNTAX_ERROR_COMMAND
- See Also:
- Constant Field Values
SYNTAX_ERROR_PARAMETER
public static final int SYNTAX_ERROR_PARAMETER
- See Also:
- Constant Field Values
COMMAND_NOT_IMPLEMENTED
public static final int COMMAND_NOT_IMPLEMENTED
- See Also:
- Constant Field Values
BAD_COMMAND_SEQUENCE
public static final int BAD_COMMAND_SEQUENCE
- See Also:
- Constant Field Values
OPERATION_NOT_PERMITTET
public static final int OPERATION_NOT_PERMITTET
- See Also:
- Constant Field Values
NOT_LOGGED_IN
public static final int NOT_LOGGED_IN
- See Also:
- Constant Field Values
NEED_ACC_FOR_STORING
public static final int NEED_ACC_FOR_STORING
- See Also:
- Constant Field Values
ACTION_NOT_TAKEN
public static final int ACTION_NOT_TAKEN
- See Also:
- Constant Field Values
ACTION_ABORTED_PAGETYPE
public static final int ACTION_ABORTED_PAGETYPE
- See Also:
- Constant Field Values
FILE_ACTION_ABORTED
public static final int FILE_ACTION_ABORTED
- See Also:
- Constant Field Values
ACTION_NOT_TAKEN_NAME
public static final int ACTION_NOT_TAKEN_NAME
- See Also:
- Constant Field Values
LOST_CONNECTION
public static final int LOST_CONNECTION
- See Also:
- Constant Field Values
EMPTY_REPLY_STRING
public static final int EMPTY_REPLY_STRING
- See Also:
- Constant Field Values
socket
private java.net.Socket socket
clntIn
private java.io.BufferedReader clntIn
clntOut
private java.io.PrintWriter clntOut
NONE
protected static final int NONE
- See Also:
- Constant Field Values
RECEIVE
protected static final int RECEIVE
- See Also:
- Constant Field Values
SEND
protected static final int SEND
- See Also:
- Constant Field Values
typeOfThread
private static int typeOfThread
errText
private static java.lang.String errText
HylaFaxConnectionManager
public HylaFaxConnectionManager(java.lang.String hostname,
int port,
boolean debug)
openConnection
public void openConnection()
throws java.io.IOException,
ProtocollException
login
public int login(java.lang.String username)
throws java.io.IOException,
ProtocollException
makePORT
private java.lang.String makePORT(byte[] iaddr,
int port)
check
protected int check(java.lang.String str)
throws ProtocollException
logout
public void logout()
closeConnection
public void closeConnection()
sendbuffer
public java.lang.String sendbuffer(char[] buf)
throws java.lang.Exception
sendbuffer
public java.lang.String sendbuffer(byte[] buf)
throws java.io.IOException,
ProtocollException
getReceived
public byte[] getReceived(java.lang.String name)
throws java.io.IOException,
ProtocollException
list
public java.lang.String list(java.lang.String what)
throws java.io.IOException,
ProtocollException
command
public java.lang.String command(java.lang.String what)
throws java.io.IOException,
ProtocollException
getInetAddr
private byte[] getInetAddr()
fail
protected static void fail(java.lang.String msg,
java.lang.Exception e,
int which)