org.nst.pasientlink.authenticator
Class SendSMSThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--org.nst.pasientlink.authenticator.SendSMSThread
All Implemented Interfaces:
java.lang.Runnable

class SendSMSThread
extends java.lang.Thread


Field Summary
private  java.lang.String GSMSubscriberID
           
private  org.apache.log4j.Logger logger
           
private  java.lang.Object semaphore
           
private static java.lang.String SENDSMS_COMMAND_SH
           
private static java.lang.String SENDSMS_COMMAND_SH_PARAMETER
           
private static java.lang.String SENDSMS_EXTERNAL_COMMAND
           
private static java.lang.String SENDSMS_MESSAGE_FOOTER
           
private static java.lang.String SENDSMS_MESSAGE_HEADER
           
private  java.lang.String singleUsePassword
           
private  java.lang.String userID
           
 
Fields inherited from class java.lang.Thread
contextClassLoader, daemon, eetop, group, inheritableThreadLocals, inheritedAccessControlContext, MAX_PRIORITY, MIN_PRIORITY, name, NORM_PRIORITY, priority, single_step, stillborn, stopThreadPermission, target, threadInitNumber, threadLocals, threadQ
 
Constructor Summary
SendSMSThread(java.lang.Object mySemaphore, Request myRequest, java.lang.String myGSMSubscriberID)
          Constructor.
 
Method Summary
 void run()
          run synchronizes on the input semaphore object, and sends an SMS using the configured device.
 
Methods inherited from class java.lang.Thread
, activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, exit, getContextClassLoader, getName, getPriority, getThreadGroup, init, interrupt, interrupt0, interrupted, isAlive, isDaemon, isInterrupted, isInterrupted, join, join, join, nextThreadNum, registerNatives, resume, resume0, setContextClassLoader, setDaemon, setName, setPriority, setPriority0, sleep, sleep, start, stop, stop, stop0, suspend, suspend0, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SENDSMS_MESSAGE_HEADER

private static java.lang.String SENDSMS_MESSAGE_HEADER

SENDSMS_MESSAGE_FOOTER

private static java.lang.String SENDSMS_MESSAGE_FOOTER

SENDSMS_COMMAND_SH

private static final java.lang.String SENDSMS_COMMAND_SH

SENDSMS_COMMAND_SH_PARAMETER

private static final java.lang.String SENDSMS_COMMAND_SH_PARAMETER

SENDSMS_EXTERNAL_COMMAND

private static final java.lang.String SENDSMS_EXTERNAL_COMMAND

semaphore

private java.lang.Object semaphore

singleUsePassword

private java.lang.String singleUsePassword

GSMSubscriberID

private java.lang.String GSMSubscriberID

userID

private java.lang.String userID

logger

private org.apache.log4j.Logger logger
Constructor Detail

SendSMSThread

public SendSMSThread(java.lang.Object mySemaphore,
                     Request myRequest,
                     java.lang.String myGSMSubscriberID)
Constructor. Sets up object.
Parameters:
mySemaphore - Object object used for synchronizing access to GSM device
myRequest - Request containing single use password and userid
myGSMSubscriberID - String containing GSM-SMS subscriber id
Method Detail

run

public void run()
run synchronizes on the input semaphore object, and sends an SMS using the configured device.
Overrides:
run in class java.lang.Thread


Copyright © 2002 Norwegian Centre for Telemedicine. All Rights Reserved.