Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

JSPservletPkg
Class ServletUpdate  view ServletUpdate download ServletUpdate.java

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byJSPservletPkg.ServletUpdate
All Implemented Interfaces:
org.osgi.service.http.HttpContext, java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ServletUpdate
extends javax.servlet.http.HttpServlet
implements org.osgi.service.http.HttpContext

Update servlet. Equivalent to JSPupdate. Changes: Version 1.0.1: delete method

Copyright (c) 2000-2001

 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
 as published by the Free Software Foundation; version 2
 of the License.
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 

Version:
1, 0, 1

Field Summary
(package private)  BasicSchemeHandler basic
          Page access security.
(package private)  java.util.ArrayList errorMsgs
          message ArrayList.
(package private)  JSPhandler handler
          JSPhandler that created ServletUpdate.
(package private) static java.lang.String msgHeader
          HTML prefix of error and notification messages
(package private) static java.lang.String msgTrailer
          HTML suffix of error and notification messages
 
Fields inherited from class javax.servlet.http.HttpServlet
 
Fields inherited from class javax.servlet.GenericServlet
 
Fields inherited from interface org.osgi.service.http.HttpContext
AUTHENTICATION_TYPE, AUTHORIZATION, REMOTE_USER
 
Constructor Summary
ServletUpdate(JSPhandler jh)
          Constructor.
 
Method Summary
(package private)  void challenge(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Invokes BasicSchemeHandler sendChallenge.
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          GET request handling.
 java.lang.String getMimeType(java.lang.String str)
          HttpContext interface's getMimeType.
 java.net.URL getResource(java.lang.String str)
          HttpContext interface getResource.
 java.lang.String getServletInfo()
          Returns information about the servlet, such as author, version, and copyright.
 boolean handleSecurity(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          HttpContext interface's handleSecurity.
 void init(javax.servlet.ServletConfig config)
          Invoked by Servlet container.
 
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, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

msgHeader

static final java.lang.String msgHeader
HTML prefix of error and notification messages

See Also:
Constant Field Values

msgTrailer

static final java.lang.String msgTrailer
HTML suffix of error and notification messages

See Also:
Constant Field Values

errorMsgs

java.util.ArrayList errorMsgs
message ArrayList.


handler

JSPhandler handler
JSPhandler that created ServletUpdate. It implements also BundleActivator, ServiceListener.


basic

BasicSchemeHandler basic
Page access security.

Constructor Detail

ServletUpdate

public ServletUpdate(JSPhandler jh)
Constructor.

Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Invoked by Servlet container.

Specified by:
init in interface javax.servlet.Servlet

doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws javax.servlet.ServletException,
                  java.io.IOException
GET request handling. Retrieve jarName parameter and invokes JSPhandler update method.


getServletInfo

public java.lang.String getServletInfo()
Description copied from class: javax.servlet.GenericServlet
Returns information about the servlet, such as author, version, and copyright. By default, this method returns an empty string. Override this method to have it return a meaningful value. See Servlet.getServletInfo()>Servlet.getServletInfo() 55 .

Specified by:
getServletInfo in interface javax.servlet.Servlet

getResource

public java.net.URL getResource(java.lang.String str)
HttpContext interface getResource.

Specified by:
getResource in interface org.osgi.service.http.HttpContext

getMimeType

public java.lang.String getMimeType(java.lang.String str)
HttpContext interface's getMimeType.

Specified by:
getMimeType in interface org.osgi.service.http.HttpContext

handleSecurity

public boolean handleSecurity(javax.servlet.http.HttpServletRequest req,
                              javax.servlet.http.HttpServletResponse res)
HttpContext interface's handleSecurity.

Specified by:
handleSecurity in interface org.osgi.service.http.HttpContext

challenge

final void challenge(javax.servlet.http.HttpServletRequest req,
                     javax.servlet.http.HttpServletResponse res)
Invokes BasicSchemeHandler sendChallenge.