com.stratelia.silverpeas.peasCore.servlets
Class SilverpeasHttpServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.stratelia.silverpeas.peasCore.servlets.SilverpeasHttpServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
Direct Known Subclasses:
SilverpeasAuthenticatedHttpServlet

public class SilverpeasHttpServlet
extends javax.servlet.http.HttpServlet

This servlet is the parent one of Silverpeas application. It provides common HTTP servlet tools. User: Yohann Chastagnier Date: 20/09/13

See Also:
Serialized Form

Constructor Summary
SilverpeasHttpServlet()
           
 
Method Summary
protected  void redirectOrForwardService(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String destination)
          Handle the sendRedirect or the forward.
protected  void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  void throwHttpForbiddenError()
          The HTTP server understood the request, but is refusing to fulfill it.
protected  void throwHttpNotFoundError()
          The server has not found anything matching the requested address (URI) ( not found ).
protected  void throwHttpPreconditionFailedError()
          The precondition given in one or more of the request-header fields evaluated to false when it was tested on the server.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SilverpeasHttpServlet

public SilverpeasHttpServlet()
Method Detail

service

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

redirectOrForwardService

protected void redirectOrForwardService(javax.servlet.http.HttpServletRequest request,
                                        javax.servlet.http.HttpServletResponse response,
                                        String destination)
                                 throws javax.servlet.ServletException,
                                        IOException
Handle the sendRedirect or the forward.

Parameters:
request -
response -
destination -
Throws:
javax.servlet.ServletException
IOException

throwHttpPreconditionFailedError

protected void throwHttpPreconditionFailedError()
The precondition given in one or more of the request-header fields evaluated to false when it was tested on the server. This response code allows the client to place preconditions on the current resource metainformation (header field data) and thus prevent the requested method from being applied to a resource other than the one intended.


throwHttpForbiddenError

protected void throwHttpForbiddenError()
The HTTP server understood the request, but is refusing to fulfill it. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable (for example the server is an Intranet and only the LAN machines are authorized to connect).


throwHttpNotFoundError

protected void throwHttpNotFoundError()
The server has not found anything matching the requested address (URI) ( not found ). This means the URL you have typed or cliked on is wrong or obsolete and does not match any document existing on the server (you may try to gradualy remove the URL components from the right to the left to eventualy retrieve an existing path).



Copyright © 2016 Silverpeas. All Rights Reserved.