org.mmbase.servlet
Class servdb

org.mmbase.servlet.JamesServlet
  |
  +--org.mmbase.servlet.servdb

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, current: $Id: servdb.java,v 1.37 2002/01/07 08:53:41 pierre Exp $
Author:
Daniel Ockeloen

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 getAttachmentFileName(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)
           
 byte[] getRMStream(java.util.Vector params, scanpage sp, javax.servlet.http.HttpServletResponse resp)
           
 java.lang.String getServletInfo()
           
 byte[] getXML(java.util.Vector params)
           
 void init(org.mmbase.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
 

Constructor Detail

servdb

public servdb()
Construct a servfile worker, it should be places in a worker pool (by the admin thread).
Method Detail

onload

public void onload()

unload

public void unload()

shutdown

public void shutdown()

init

public void init(org.mmbase.servlet.ServletConfig config)
          throws org.mmbase.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 org.mmbase.servlet.ServletException,
                    java.io.IOException

getServletInfo

public java.lang.String getServletInfo()

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)

getAttachmentFileName

public java.lang.String getAttachmentFileName(java.util.Vector params)
Downloading Attachment cjr@dds.nl, July 27th 2000
Returns:
Byte array with contents of 'handle' field of attachment builder

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)

getRMStream

public byte[] getRMStream(java.util.Vector params,
                          scanpage sp,
                          javax.servlet.http.HttpServletResponse resp)


MMBase 2002