kom.gateway
Class Chat

java.lang.Object
  |
  +--kom.gateway.DBLow
        |
        +--kom.gateway.DBHigh
              |
              +--kom.gateway.KOMutil
                    |
                    +--kom.gateway.Form
                          |
                          +--kom.gateway.Chat
Direct Known Subclasses:
Grade

public class Chat
extends Form

Displays a KOM object, handles the details of the GET operation


Inner classes inherited from class kom.gateway.KOMutil
KOMutil.LookupTables, KOMutil.UFtable
 
Field Summary
(package private) static java.lang.String oldbody
           
(package private) static boolean oldpres
           
(package private)  boolean reverseChat
           
 
Fields inherited from class kom.gateway.Form
acceptform, added, bodytext, curform, formcodes, isHTML, isVote, kBase, kBbody, kCname, kCuser, kDColor, kFBase, KFC, kHColor, kIcons, kKFC, kLColor, kPboard, kPcomm, kPdate, kPhtml, kPhtmldef, kPinterval, kPnotif, kPshort, kPtype, kServer, kTarea, oldOutput, outputText, submitted, substkey
 
Fields inherited from class kom.gateway.KOMutil
ACT, anyAccess, arglist, argsep, argtab, attachments, BOK, BOUNDARYSTART, CAT, CHA, cidTable, CLO, config, curNgd, DIC, environment, gateway, gavePassword, GEN, GRA, GRP, inlineCurr, inlines, INT, LINE_CUTOFF, LINE_FUDGE, LIS, lt, MAILIT, messageRecipientTypeCode, MIM, MOD, N_RECTY, N_RECTYPECODE, newsclient, newsClients, newsData, nntpAuth, NWS, NWSART, objCache, oCurr, oldnews, POSTIT, RAT, REC_BCC, REC_CC, REC_TO, recTypeCode, REP, response, rLoc, savednews, sCursor, servletBase, session, THR, userData, USR, VOT
 
Fields inherited from class kom.gateway.DBHigh
AdminURL, cache, HomeURL, UsersURL
 
Fields inherited from class kom.gateway.DBLow
absCDBpath, config, fSep, fSeparator, msgAuth, msgParts
 
Constructor Summary
Chat(ServerConfig config, HTTPResponse response, Gateway gateway)
          class constructor
 
Method Summary
 void addChat(java.lang.String auth, java.lang.String ref, java.lang.String body, KomData obj)
           
 void chat(KomData ht)
          Builds page for a chat activity
private  java.util.Vector chatFetch(KomData ht, java.lang.String time)
           
private  void chatHeader(KomData ht, java.lang.String a)
          Builds a header for a chat (announces new participant)
private  void chatIndex(KomData ht)
           
private  void chatInput(KomData ht)
           
private  void chatList(KomData ht)
           
private  void chatOut(java.util.Vector opers, int i, boolean full)
           
private  void chatOutput(KomData ht, java.lang.String time, boolean full)
           
private  void chatStore(java.lang.String ref, KomData kd)
           
private  void checkEnter(KomData ht)
           
private  void enter(java.lang.String ref, java.lang.String auth)
           
 boolean isActive(java.lang.String ref)
           
private  void leave(java.lang.String ref)
           
 void leaveChat(java.lang.String id)
           
private  void pres(java.lang.String ref, java.lang.String auth, boolean pres)
           
 boolean qchat(KomData ht)
           
private  void setUser(java.lang.String auth, java.lang.String ref)
           
private  void transform(KomData ht)
           
 
Methods inherited from class kom.gateway.Form
, add, addBody, addv, checkHTML, checkHTTP, checkTag, checkVote, complete, contains, dispauth, dispbody, dispcheck, dispname, dispselect, disptype, form, form, form, form, formsegment, getAreaResult, getForm, getHTML, getOutputText, getQryValues, getResultBox, getResultText, getSelect1, getSelect2, getSelectResult, getTag, getVote, getVoteArea, getVoteCheck, getVoteSelect, getVoteSubmit, getVoteTag, getVoteText, insertSelect, makeHTML, nextmatching, normalize, restoreOutput, saveOutput, textareaSubst, transform, translate, trbody
 
Methods inherited from class kom.gateway.KOMutil
a, accessCont, accessCont, accessObj, addInfoData, addrToLocal, changeEnvironment, cidReplace, contType, decodeText, deleted, dispMailMessage, doAction, equal, excluded, fetchNews, findId, findId, findlocal, findLogin, findOwner, findUser, getActId, getcont, getcont, getcontV, getcontV, getCurNgd, getmemb, getMsgParts, getMsgText, getNews, getNewsAuth, getobj, getobject, getold, getParent, getPart, getSimpleFileName, getSimpleFileName, getStream, getTail, getTextPart, getVal, getVal, isAllowed, isarg, isMember, isOrganizer, isOrganizer, ispunct, isType, isValidEmailAddress, loggedIn, mailDate, mailDate, mimeMessage, mimeMessageStream, mkdate, mkdate, noQuote, parseArglist, parseArgs, setCids, setNewsAuth, setValidMsgPwd, showBody, showHeader, showHeader, showHeaders, showInputStream, showMailMessage, showMessage, showMultipart, toString, transbody, urlexpand, userGavePassword, userGavePassword, wrap
 
Methods inherited from class kom.gateway.DBHigh
addContent, addContent, addDraft, addInfo, addLast, addMember, addNews, addObj, addObj, addObject, addObject, addQuery, cleanDrafts, contentCount, createNews, depth, expungeRef, findContent, findDraft, findDraftData, findInfo, findMemb, findNews, findObject, findObject, findQuery, getFormContents, getQryDefault, getQueries, getseq, getStringValues, getValues, invalidateCount, isEmpty, isStandard, listDraft, makeArea, modObject, msgExists, nextDraft, queryExists, ref2path, refExists, removeDraft, removeQuery, replaceObject, Stream2String, String2Stream, StringBuffer2Stream, updateCount, updCount, updref, updseq
 
Methods inherited from class kom.gateway.DBLow
accessPart, addFile, areaExists, basedRef, createArea, debugLog, errorLog, expungeFile, File2Stream, File2String, findPart, getFile, getFileContents, getFileStream, getPath, getStandard, isMailSpool, lastModified, length, listFiles, makePart, msgPartStream, partfile, partpath, printStackTrace, readObject, removeFile, replaceMime, updseq1, validate, validate, writeObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

reverseChat

boolean reverseChat

oldbody

static java.lang.String oldbody

oldpres

static boolean oldpres
Constructor Detail

Chat

public Chat(ServerConfig config,
            HTTPResponse response,
            Gateway gateway)
class constructor
Parameters:
config - Server configuration data
response - HTTP response object
gateway - Reference to client supervisor
Method Detail

addChat

public void addChat(java.lang.String auth,
                    java.lang.String ref,
                    java.lang.String body,
                    KomData obj)

setUser

private void setUser(java.lang.String auth,
                     java.lang.String ref)

qchat

public boolean qchat(KomData ht)

chat

public void chat(KomData ht)
Builds page for a chat activity

chatHeader

private void chatHeader(KomData ht,
                        java.lang.String a)
Builds a header for a chat (announces new participant)

checkEnter

private void checkEnter(KomData ht)

enter

private void enter(java.lang.String ref,
                   java.lang.String auth)

chatOutput

private void chatOutput(KomData ht,
                        java.lang.String time,
                        boolean full)

chatFetch

private java.util.Vector chatFetch(KomData ht,
                                   java.lang.String time)

transform

private void transform(KomData ht)

chatOut

private void chatOut(java.util.Vector opers,
                     int i,
                     boolean full)

isActive

public boolean isActive(java.lang.String ref)

chatInput

private void chatInput(KomData ht)

chatList

private void chatList(KomData ht)

chatIndex

private void chatIndex(KomData ht)

leaveChat

public void leaveChat(java.lang.String id)

leave

private void leave(java.lang.String ref)

chatStore

private void chatStore(java.lang.String ref,
                       KomData kd)

pres

private void pres(java.lang.String ref,
                  java.lang.String auth,
                  boolean pres)