|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.GenericServlet javax.servlet.http.HttpServlet net.sf.hermesftp.console.AbstractConsoleServlet
public abstract class AbstractConsoleServlet
Abstract super class of the servlets of the FTP console.
Constructor Summary | |
---|---|
AbstractConsoleServlet()
|
Method Summary | |
---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
|
protected void |
fillField(java.lang.StringBuffer sb,
java.lang.String value)
Creates an HTML table fied (TD element). |
protected void |
fillNumField(java.lang.StringBuffer sb,
java.lang.String value)
Creates an HTML table fied (TD element). |
protected java.lang.String |
formatDate(java.util.Date date)
Formats a date value. |
protected java.lang.String |
formatNum(long num)
Formats a long value. |
protected java.lang.String |
formatNum(java.lang.Object num)
Formats a numeric value. |
protected abstract java.util.Properties |
getContentProperties()
The content properties object. |
java.lang.String |
getContentResourceName()
Getter methode for property contentResourceName . |
java.lang.String |
getFooterResourceName()
Getter methode for property footerResourceName . |
java.lang.String |
getHeaderResourceName()
Getter methode for property headerResourceName . |
int |
getRefreshInterval()
Getter methode for property refreshInterval . |
void |
setContentResourceName(java.lang.String contentResourceName)
Setter methode for property contentResourceName . |
void |
setFooterResourceName(java.lang.String footerResourceName)
Setter methode for property footerResourceName . |
void |
setHeaderResourceName(java.lang.String headerResourceName)
Setter methode for property headerResourceName . |
void |
setRefreshInterval(int refreshInterval)
Setter methode for property refreshInterval . |
Methods inherited from class javax.servlet.http.HttpServlet |
---|
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractConsoleServlet()
Method Detail |
---|
protected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
protected void fillField(java.lang.StringBuffer sb, java.lang.String value)
sb
- The stringbuffer to write to.value
- The value to fill.protected void fillNumField(java.lang.StringBuffer sb, java.lang.String value)
sb
- The stringbuffer to write to.value
- The numeric value to fill.protected java.lang.String formatDate(java.util.Date date)
date
- The date to format.
protected java.lang.String formatNum(java.lang.Object num)
num
- The number to format.
protected java.lang.String formatNum(long num)
num
- The number to format.
protected abstract java.util.Properties getContentProperties()
public java.lang.String getContentResourceName()
contentResourceName
.
contentResourceName
.public void setContentResourceName(java.lang.String contentResourceName)
contentResourceName
.
contentResourceName
- Value for content resource name.public java.lang.String getFooterResourceName()
footerResourceName
.
footerResourceName
.public void setFooterResourceName(java.lang.String footerResourceName)
footerResourceName
.
footerResourceName
- Value for footerResourceName
.public java.lang.String getHeaderResourceName()
headerResourceName
.
headerResourceName
.public void setHeaderResourceName(java.lang.String headerResourceName)
headerResourceName
.
headerResourceName
- Value for headerResourceName
.public int getRefreshInterval()
refreshInterval
.
refreshInterval
.public void setRefreshInterval(int refreshInterval)
refreshInterval
.
refreshInterval
- Value for refreshInterval
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |