|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SK.gnome.dwarf.GenericService SK.gnome.dwarf.GenericServer SK.gnome.dwarf.thread.ThreadServer SK.gnome.dwarf.thread.MultiThreadServer SK.gnome.dwarf.tcpip.TCPIPServer SK.gnome.dwarf.sample.QuoteServer
Container for the Quote of the Day Service (RFC 865) handlers.
It extends the generic TCPIPServer
class. The getQuote()
method
must be implemented because it is required by the QuoteHandler
class.
Field Summary | |
protected java.lang.String[] |
quotes
Array of string quotes. |
Fields inherited from class SK.gnome.dwarf.tcpip.TCPIPServer |
sslContext |
Fields inherited from class SK.gnome.dwarf.thread.MultiThreadServer |
counter |
Fields inherited from class SK.gnome.dwarf.thread.ThreadServer |
daemon, thread |
Fields inherited from class SK.gnome.dwarf.GenericService |
initParameters, parent |
Fields inherited from interface SK.gnome.dwarf.Service |
INITIALIZED, LOG_DEBUG, LOG_ERROR, LOG_FATAL, LOG_INFO, LOG_TRACE, LOG_WARN, LOG_XFER, SHUTDOWN, STARTED, STOPPED |
Constructor Summary | |
QuoteServer(java.lang.String name)
Creates a new QuoteServer. |
Method Summary | |
java.lang.String |
getQuote()
Returns a single quote string. |
void |
setQuotes(java.util.Properties quotes)
Sets the quote strings. |
Methods inherited from class SK.gnome.dwarf.tcpip.TCPIPServer |
createSSLServerSocket, createSSLServerSocket, createSSLSocket, enqueue, finish, getRequestReadTimeout, getTCPRequest, init, isBlocking, isSSLConfigured, loop, report, setKeyPwd, setKeyStorePwd, setKeyStoreURL, setRegistrationQueueSize, setRequestClass, setSSLProtocol, shutdown, start |
Methods inherited from class SK.gnome.dwarf.thread.MultiThreadServer |
addService, dequeue, enableThread, getHandlerTimeout, setHandlerClass, setHandlerTimeout, setMaxHandlers, setMinHandlers, setQueueSize, setSingleRequest, wakeUpHandlers |
Methods inherited from class SK.gnome.dwarf.thread.ThreadServer |
finish, run, setDaemon, stop |
Methods inherited from class SK.gnome.dwarf.GenericServer |
addService, getAuthenticator, getLogger, getParameters, getService, getServices, getServices, removeService |
Methods inherited from class SK.gnome.dwarf.GenericService |
getAuthFacility, getFullName, getInitParameter, getInitParameterNames, getLogFacility, getName, getPrincipal, getShutdownTimeout, getState, log, log, login, logout, setAuthFacility, setInitParameters, setLogFacility, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface SK.gnome.dwarf.Service |
getFullName, getName, getState, log, log, login, logout |
Field Detail |
protected java.lang.String[] quotes
Constructor Detail |
public QuoteServer(java.lang.String name)
Method Detail |
public void setQuotes(java.util.Properties quotes)
quotes
- the quote stringspublic java.lang.String getQuote()
It cycles through the quote string array and returns a single quote string each time the method is invoked. The method must be synchronized to ensure the proper cycling of the quotes.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |