org.mmbase.servlet
Class servdb
java.lang.Object
|
+--javax.servlet.GenericServlet
|
+--javax.servlet.http.HttpServlet
|
+--org.mmbase.servlet.JamesServlet
|
+--org.mmbase.servlet.servdb
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- public class servdb
- extends JamesServlet
servdb handles binairy request (*.db) files for MMbase spaces as images (img.db)
realaudio (realaudio.db) but also xml (xml.db) and dtd's (dtd.db) with servscan
it provides the communication between the clients browser and the mmbase space.
- Version:
- 23 Oct 1997
- Author:
- Daniel Ockeloen
- See Also:
- Serialized Form
|
Constructor Summary |
servdb()
Construct a servfile worker, it should be places in a worker
pool (by the admin thread). |
|
Method Summary |
java.util.Vector |
addRAMSpeed(scanpage sp,
java.util.Vector params,
javax.servlet.http.HttpServletResponse res)
|
java.util.Vector |
checkSessionJingle(scanpage sp,
java.util.Vector params,
javax.servlet.http.HttpServletResponse res)
|
java.util.Vector |
filterSessionMods(scanpage sp,
java.util.Vector params,
javax.servlet.http.HttpServletResponse res)
|
byte[] |
getAttachment(java.util.Vector params)
Downloading Attachment
cjr@dds.nl, July 27th 2000 |
java.lang.String |
getAttachmentMimeType(java.util.Vector params)
Mimetype of attachment
cjr@dds.nl, July 27th 2000 |
byte[] |
getDTD(java.util.Vector params)
|
byte[] |
getFlash(java.util.Vector params)
Return Flash movie |
java.lang.String |
getParamValue(java.lang.String wanted,
java.util.Vector params)
try to obtain a decoded param string from the input Vector
format in : s(11212)
format out 11212
on a get with 's' |
byte[] |
getRAStream(java.util.Vector params,
scanpage sp,
javax.servlet.http.HttpServletResponse resp,
boolean isInternal)
|
byte[] |
getRMStream(java.util.Vector params,
scanpage sp,
javax.servlet.http.HttpServletResponse resp,
boolean isInternal)
|
java.lang.String |
getServletInfo()
|
byte[] |
getXML(java.util.Vector params)
|
void |
init(javax.servlet.ServletConfig config)
Initializes the servlet. |
void |
onload()
|
void |
service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
|
void |
shutdown()
|
void |
unload()
|
int |
writeline(javax.servlet.http.HttpServletResponse res,
java.lang.String line)
Write String to the current client socket |
| Methods inherited from class org.mmbase.servlet.JamesServlet |
debug, decRefCount, finalize, getAddress, getAuthorization, getAuthorization, getCookie, getInitParameters, getModule, getParam, getParamVector, getProperties, getProperty, getRequestURL, incRefCount, isInternalVPROAddress |
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doGet, doOptions, doPost, doPut, doTrace, getLastModified, service |
| Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
servdb
public servdb()
- Construct a servfile worker, it should be places in a worker
pool (by the admin thread).
onload
public void onload()
unload
public void unload()
shutdown
public void shutdown()
init
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
- Description copied from class:
JamesServlet
- Initializes the servlet.
- Overrides:
init in class JamesServlet
- Following copied from class:
org.mmbase.servlet.JamesServlet
- Parameters:
config - the servlet configuration
service
public void service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
java.io.IOException
- Overrides:
service in class javax.servlet.http.HttpServlet
getServletInfo
public java.lang.String getServletInfo()
- Overrides:
getServletInfo in class javax.servlet.GenericServlet
filterSessionMods
public java.util.Vector filterSessionMods(scanpage sp,
java.util.Vector params,
javax.servlet.http.HttpServletResponse res)
checkSessionJingle
public java.util.Vector checkSessionJingle(scanpage sp,
java.util.Vector params,
javax.servlet.http.HttpServletResponse res)
addRAMSpeed
public java.util.Vector addRAMSpeed(scanpage sp,
java.util.Vector params,
javax.servlet.http.HttpServletResponse res)
getXML
public byte[] getXML(java.util.Vector params)
getAttachment
public byte[] getAttachment(java.util.Vector params)
- Downloading Attachment
cjr@dds.nl, July 27th 2000
- Returns:
- Byte array with contents of 'handle' field of attachment builder
getAttachmentMimeType
public java.lang.String getAttachmentMimeType(java.util.Vector params)
- Mimetype of attachment
cjr@dds.nl, July 27th 2000
- Returns:
- Mimetype of attachment
getFlash
public byte[] getFlash(java.util.Vector params)
- Return Flash movie
- Returns:
- Byte array with Flash movie
getDTD
public byte[] getDTD(java.util.Vector params)
getParamValue
public java.lang.String getParamValue(java.lang.String wanted,
java.util.Vector params)
- try to obtain a decoded param string from the input Vector
format in : s(11212)
format out 11212
on a get with 's'
writeline
public int writeline(javax.servlet.http.HttpServletResponse res,
java.lang.String line)
- Write String to the current client socket
- Parameters:
String - line to be writen to the client- Returns:
- 0 if done, -1 if a error has accured
getRAStream
public byte[] getRAStream(java.util.Vector params,
scanpage sp,
javax.servlet.http.HttpServletResponse resp,
boolean isInternal)
getRMStream
public byte[] getRMStream(java.util.Vector params,
scanpage sp,
javax.servlet.http.HttpServletResponse resp,
boolean isInternal)
MMBase 2001