|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jpop.net.PoplogDocProtocol
Field Summary | |
static java.lang.String |
CLOSE_REQUEST
The string that indicates the connection is finished |
static java.lang.String |
ERROR_MESG
Prepended to the response string to indicate the nature of the message. |
static java.lang.String |
POP_SERVER
The name of the pop11 server program |
static java.lang.String |
PROCESS_NAME
THe name of the process we will run to get documentation |
static java.lang.String |
SERVER_MESG
Prepended to the response string to indicate the nature of the message. |
static java.lang.String |
TEXT_MESG
Prepended to the response string to indicate the nature of the message. |
static java.lang.String |
WARNING_MESG
Prepended to the response string to indicate the nature of the message. |
Constructor Summary | |
PoplogDocProtocol(ServerInfo serverInfo)
Constructor for PoplogDocProtocol |
Method Summary | |
java.lang.String |
getCloseConnectionRequestString()
Gets the close connection request string attribute of the PoplogDocProtocol
class |
java.io.BufferedReader |
getDoc(java.lang.String docRequest)
Gets the doc requested |
java.io.BufferedReader |
getList(java.lang.String listRequest)
Gets the list requested |
java.io.BufferedReader |
getProcessErr()
Gets the process err attribute of the PoplogDocProtocol object |
static java.lang.String |
prepareErrorMessage(java.lang.Exception e)
Makes an exception that can be sent through the net to a client in the proper format |
void |
println(java.lang.String s)
Print a line to the IOControl's stdin |
java.lang.String |
processRequest(java.lang.String request)
Processes a request from a client |
void |
processRespawned()
To be overriden by a subclass. |
java.lang.String |
readStderrLine()
Read a line from the IOControl's stderr |
java.lang.String |
readStdoutLine()
Read a line from the IOControl's stdout |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String PROCESS_NAME
public static final java.lang.String POP_SERVER
public static final java.lang.String CLOSE_REQUEST
public static final java.lang.String WARNING_MESG
public static final java.lang.String ERROR_MESG
public static final java.lang.String TEXT_MESG
public static final java.lang.String SERVER_MESG
Constructor Detail |
public PoplogDocProtocol(ServerInfo serverInfo)
PoplogDocProtocol
serverInfo
- server infoMethod Detail |
public static java.lang.String prepareErrorMessage(java.lang.Exception e)
e
- The exception
public java.io.BufferedReader getProcessErr()
PoplogDocProtocol
object
processErr
valuepublic java.lang.String getCloseConnectionRequestString()
PoplogDocProtocol
class
getCloseConnectionRequestString
in interface ProtocolInterface
closeConnectionRequestString
valuepublic java.io.BufferedReader getList(java.lang.String listRequest) throws ServerException
listRequest
- the list args request from the client (LIST [args]) ->
getList(args)
list
ServerException
public java.io.BufferedReader getDoc(java.lang.String docRequest) throws ServerException
docRequest
- the doc args request from the client (OPEN [args]) ->
getDoc(args)
doc
ServerException
public void processRespawned()
public java.lang.String processRequest(java.lang.String request)
processRequest
in interface ProtocolInterface
request
- The request to process
public java.lang.String readStdoutLine()
public java.lang.String readStderrLine()
public void println(java.lang.String s)
s
- The line to print
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |