deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.enterprise.servlet
Class ProtocolServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.deegree.enterprise.servlet.ProtocolServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ProtocolServlet
extends javax.servlet.http.HttpServlet
implements java.io.Serializable

Used to authenticate the user in order to view the Protocol file

Version:
$Revision: 1.3 $, $Date: 2008-03-07 16:31:02 $
Author:
Moataz Elmasry, last edited by: $Author: elmasry $
See Also:
Serialized Form

Constructor Summary
ProtocolServlet()
           
 
Method Summary
protected  void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 java.lang.String getProtocolURL()
           
 void init()
           
protected  boolean isLoggedIn(javax.servlet.http.HttpServletRequest request)
          Verifies that this user is loggedin through comparing the session ID from the request paarameter with that saved in the session
protected  void PerformAction(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProtocolServlet

public ProtocolServlet()
Method Detail

init

public void init()
          throws javax.servlet.ServletException
Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException

doGet

protected void doGet(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response)
              throws javax.servlet.ServletException,
                     java.io.IOException
Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
java.io.IOException

doPost

protected void doPost(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response)
               throws javax.servlet.ServletException,
                      java.io.IOException
Overrides:
doPost in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
java.io.IOException

PerformAction

protected void PerformAction(javax.servlet.http.HttpServletRequest request,
                             javax.servlet.http.HttpServletResponse response)

isLoggedIn

protected boolean isLoggedIn(javax.servlet.http.HttpServletRequest request)
Verifies that this user is loggedin through comparing the session ID from the request paarameter with that saved in the session

Parameters:
request -
Returns:
true if the user is loggedin, false otherwise

getProtocolURL

public java.lang.String getProtocolURL()
Returns:
the Location of the protocol of this Service

deegree 2.5 (2011/06/29 09:44 build-8-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org