org.mmbase.servlet
Class servdb

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--org.mmbase.servlet.MMBaseServlet
                    |
                    +--org.mmbase.servlet.JamesServlet
                          |
                          +--org.mmbase.servlet.servdb
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

Deprecated. use ImageServlet or AttachmentServlet instead

public class servdb
extends JamesServlet

The servdb servlet handles binairy requests. This includes 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:
$Id: servdb.java,v 1.44.2.8 2003/08/26 09:11:38 vpro Exp $
Author:
Daniel Ockeloen
See Also:
Serialized Form

Fields inherited from class org.mmbase.servlet.JamesServlet
pageLog
 
Fields inherited from class org.mmbase.servlet.MMBaseServlet
mmbase
 
Constructor Summary
servdb()
          Deprecated. 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)
          Deprecated.  
 java.util.Vector checkSessionJingle(scanpage sp, java.util.Vector params, javax.servlet.http.HttpServletResponse res)
          Deprecated.  
 java.util.Vector filterSessionMods(scanpage sp, java.util.Vector params, javax.servlet.http.HttpServletResponse res)
          Deprecated.  
 byte[] getAttachment(java.util.Vector params)
          Deprecated. moved to AttachmentServlet
 java.lang.String getAttachmentFileName(java.util.Vector params)
          Deprecated. moved to AttachmentServlet
 java.lang.String getAttachmentMimeType(java.util.Vector params)
          Deprecated. moved to AttachmentServlet
 byte[] getDTD(java.util.Vector params)
          Deprecated.  
 byte[] getFlash(java.util.Vector params)
          Deprecated. Return Flash movie
 java.lang.String getParamValue(java.lang.String wanted, java.util.Vector params)
          Deprecated. 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)
          Deprecated.  
 byte[] getRMStream(java.util.Vector params, scanpage sp, javax.servlet.http.HttpServletResponse resp)
          Deprecated.  
 java.lang.String getServletInfo()
          Deprecated. Returns information about this servlet.
 byte[] getXML(java.util.Vector params)
          Deprecated.  
 void init()
          Deprecated. Initializes the servlet.
 void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Deprecated. The service method is extended with calls for the refCount functionality (for performance related debugging).
 int writeline(javax.servlet.http.HttpServletResponse res, java.lang.String line)
          Deprecated. Write String to the current client socket
 
Methods inherited from class org.mmbase.servlet.JamesServlet
getAddress, getAuthorization, getAuthorization, getCookie, getInitParameters, getModule, getParam, getParamVector, getProperties, getProperty
 
Methods inherited from class org.mmbase.servlet.MMBaseServlet
associateMapping, decRefCount, destroy, doGet, getAssociations, getRequestURL, getServletByAssociation, getServletByMapping, getServletMappings, getServletMappingsByAssociation, incRefCount
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

servdb

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

init

public void init()
          throws javax.servlet.ServletException
Deprecated. 
Description copied from class: JamesServlet
Initializes the servlet.
Overrides:
init in class JamesServlet

service

public void service(javax.servlet.http.HttpServletRequest req,
                    javax.servlet.http.HttpServletResponse res)
             throws javax.servlet.ServletException,
                    java.io.IOException
Deprecated. 
Description copied from class: MMBaseServlet
The service method is extended with calls for the refCount functionality (for performance related debugging). So you can simply override doGet in extension classes, and this stays working, without having to think about it.
Overrides:
service in class MMBaseServlet

getServletInfo

public java.lang.String getServletInfo()
Deprecated. 
Description copied from class: MMBaseServlet
Returns information about this servlet. Don't forget to override it.
Overrides:
getServletInfo in class MMBaseServlet

filterSessionMods

public java.util.Vector filterSessionMods(scanpage sp,
                                          java.util.Vector params,
                                          javax.servlet.http.HttpServletResponse res)
Deprecated. 

checkSessionJingle

public java.util.Vector checkSessionJingle(scanpage sp,
                                           java.util.Vector params,
                                           javax.servlet.http.HttpServletResponse res)
Deprecated. 

addRAMSpeed

public java.util.Vector addRAMSpeed(scanpage sp,
                                    java.util.Vector params,
                                    javax.servlet.http.HttpServletResponse res)
Deprecated. 

getXML

public byte[] getXML(java.util.Vector params)
Deprecated. 

getAttachmentFileName

public java.lang.String getAttachmentFileName(java.util.Vector params)
Deprecated. moved to AttachmentServlet

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)
Deprecated. moved to AttachmentServlet

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)
Deprecated. moved to AttachmentServlet

Mimetype of attachment cjr@dds.nl, July 27th 2000
Returns:
Mimetype of attachment

getFlash

public byte[] getFlash(java.util.Vector params)
Deprecated. 
Return Flash movie
Returns:
Byte array with Flash movie

getDTD

public byte[] getDTD(java.util.Vector params)
Deprecated. 

getParamValue

public java.lang.String getParamValue(java.lang.String wanted,
                                      java.util.Vector params)
Deprecated. 
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)
Deprecated. 
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)
Deprecated. 

getRMStream

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


MMBase build 1.6.5.20030923