org.deegree.enterprise.servlet
Class ProtocolServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
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
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 |
ProtocolServlet
public ProtocolServlet()
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
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org