sfi.director.application.FrontendInterface Class Reference

List of all members.

Detailed Description

Implements communication protocol for frontends.


Public Member Functions

 FrontendInterface (InputStream inchannel, OutputStream outchannel, FrontendCallback sessionControl)
void talk (boolean sessionStartMode) throws IOException
boolean executeCommand (DBObject command) throws IOException

Static Public Member Functions

static void addPending (FrontendCredentials creds)
 add a "Credentials" object to the list of pending authentications
static void removePending (FrontendCredentials creds)
 remove a "Credentials" object from the list of pending authentications
static void setupDone ()
 this method is called by setup_frinterface as soon as setup is complete

Static Public Attributes

static String sessionPassword = null

Protected Member Functions

void flush () throws IOException
void writeLine (String line) throws IOException
void log (String text) throws IOException
void sendEditorErrors (FrontendEditor editor) throws IOException
FrontendEditor findEditor (DBObject command) throws IOException
void ensureShortcuts ()
DBConnection findDB (DBObject command) throws IOException
String receive_data () throws IOException
String receive_data (String description) throws IOException
void send_data (String data) throws IOException
void send_file (String data, String description) throws IOException
void send_file (String data) throws IOException
void send_search (Enumeration search, String description) throws IOException

Static Package Functions

 [static initializer]

Package Attributes

BufferedReader inReader = null
OutputStream outStream = null
boolean connected = false
int sessionPwFailed = 0
boolean sessionStartMode = false
EventEnvironment currentEvent = null
FrontendCallback sessionControl = null
StringBuffer buffer = new StringBuffer()
OutputStream log = null
long start = 0

Static Package Attributes

static Vector pendingCredentials = new Vector()
 contains a list of FrontendCredentials objects waiting for authentication
static boolean setupComplete = false
 this is true if setup is complete - means every authentication has taken place
static Hashtable databaseShortcuts = null
 A hash of database shortcuts used by findDB().


Constructor & Destructor Documentation

sfi.director.application.FrontendInterface.FrontendInterface InputStream  inchannel,
OutputStream  outchannel,
FrontendCallback  sessionControl
 


Member Function Documentation

sfi.director.application.FrontendInterface.[static initializer]  )  [static, package]
 

static void sfi.director.application.FrontendInterface.addPending FrontendCredentials  creds  )  [static]
 

add a "Credentials" object to the list of pending authentications

void sfi.director.application.FrontendInterface.ensureShortcuts  )  [protected]
 

boolean sfi.director.application.FrontendInterface.executeCommand DBObject  command  )  throws IOException
 

DBConnection sfi.director.application.FrontendInterface.findDB DBObject  command  )  throws IOException [protected]
 

FrontendEditor sfi.director.application.FrontendInterface.findEditor DBObject  command  )  throws IOException [protected]
 

void sfi.director.application.FrontendInterface.flush  )  throws IOException [protected]
 

void sfi.director.application.FrontendInterface.log String  text  )  throws IOException [protected]
 

String sfi.director.application.FrontendInterface.receive_data String  description  )  throws IOException [protected]
 

String sfi.director.application.FrontendInterface.receive_data  )  throws IOException [protected]
 

static void sfi.director.application.FrontendInterface.removePending FrontendCredentials  creds  )  [static]
 

remove a "Credentials" object from the list of pending authentications

void sfi.director.application.FrontendInterface.send_data String  data  )  throws IOException [protected]
 

void sfi.director.application.FrontendInterface.send_file String  data  )  throws IOException [protected]
 

void sfi.director.application.FrontendInterface.send_file String  data,
String  description
throws IOException [protected]
 

void sfi.director.application.FrontendInterface.send_search Enumeration  search,
String  description
throws IOException [protected]
 

void sfi.director.application.FrontendInterface.sendEditorErrors FrontendEditor  editor  )  throws IOException [protected]
 

static void sfi.director.application.FrontendInterface.setupDone  )  [static]
 

this method is called by setup_frinterface as soon as setup is complete

void sfi.director.application.FrontendInterface.talk boolean  sessionStartMode  )  throws IOException
 

void sfi.director.application.FrontendInterface.writeLine String  line  )  throws IOException [protected]
 


Member Data Documentation

StringBuffer sfi.director.application.FrontendInterface.buffer = new StringBuffer() [package]
 

boolean sfi.director.application.FrontendInterface.connected = false [package]
 

EventEnvironment sfi.director.application.FrontendInterface.currentEvent = null [package]
 

Hashtable sfi.director.application.FrontendInterface.databaseShortcuts = null [static, package]
 

A hash of database shortcuts used by findDB().

BufferedReader sfi.director.application.FrontendInterface.inReader = null [package]
 

OutputStream sfi.director.application.FrontendInterface.log = null [package]
 

OutputStream sfi.director.application.FrontendInterface.outStream = null [package]
 

Vector sfi.director.application.FrontendInterface.pendingCredentials = new Vector() [static, package]
 

contains a list of FrontendCredentials objects waiting for authentication

FrontendCallback sfi.director.application.FrontendInterface.sessionControl = null [package]
 

String sfi.director.application.FrontendInterface.sessionPassword = null [static]
 

int sfi.director.application.FrontendInterface.sessionPwFailed = 0 [package]
 

boolean sfi.director.application.FrontendInterface.sessionStartMode = false [package]
 

boolean sfi.director.application.FrontendInterface.setupComplete = false [static, package]
 

this is true if setup is complete - means every authentication has taken place

long sfi.director.application.FrontendInterface.start = 0 [package]
 


The documentation for this class was generated from the following file:
Generated on Sat Feb 11 01:20:02 2012 for Node Director by  doxygen 1.4.5