org.nuiton.wikitty.publication
Class WikittyPublicationServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.nuiton.wikitty.publication.WikittyPublicationServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class WikittyPublicationServlet
extends javax.servlet.http.HttpServlet

url:

 /[context]/[action]/[action argument]?[action argument]#[fragment]
 
example:
 /codelutin/raw/WikittyPubData.name=lutin.jpg/WikittyPubData.content?mimetype=WikittyPubData.mimetype
 
  • la config du WikittyService sera lu dans la config wikitty.publication.config.pattern en remplacant %s par 'default' la valeur de 'wikitty.data.directory' est modifier pour lui ajouter le context par defaut en plus, puis le fichier de config specifique au context est lu qui peut alors ecraser 'wikitty.data.directory' et toutes les autres valeurs par defaut
  • l'action executee sera 'raw' la classe associee sera trouve dans le fichier de config WikittyPublication.
  • le reste sont des arguments specifique a l'action que l'action pourra trouver dans: WikittyPublicationContext.getMandatoryArguments() et WikittyPublicationContext.getArguments().

    Version:
    $Revision: 650 $ Last update: $Date: 2010-12-23 12:44:57 +0100 (jeu., 23 déc. 2010) $ by : $Author: sletellier $
    Author:
    poussin
    See Also:
    Serialized Form

    Field Summary
    static org.nuiton.util.ApplicationConfig appConfig
               
     
    Constructor Summary
    WikittyPublicationServlet()
               
     
    Method Summary
    protected  void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
               
    protected  void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
               
     void init()
               
     
    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
     

    Field Detail

    appConfig

    public static org.nuiton.util.ApplicationConfig appConfig
    Constructor Detail

    WikittyPublicationServlet

    public WikittyPublicationServlet()
    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 req,
                         javax.servlet.http.HttpServletResponse resp)
                  throws javax.servlet.ServletException,
                         IOException
    Overrides:
    doGet in class javax.servlet.http.HttpServlet
    Throws:
    javax.servlet.ServletException
    IOException

    doPost

    protected void doPost(javax.servlet.http.HttpServletRequest req,
                          javax.servlet.http.HttpServletResponse resp)
                   throws javax.servlet.ServletException,
                          IOException
    Overrides:
    doPost in class javax.servlet.http.HttpServlet
    Throws:
    javax.servlet.ServletException
    IOException


    Copyright © 2010 CodeLutin. All Rights Reserved.