[jboss-cvs] jboss-seam/src/main/org/jboss/seam/remoting ...

Shane Bryzak Shane_Bryzak at symantec.com
Wed Dec 20 21:38:28 EST 2006


  User: sbryzak2
  Date: 06/12/20 21:38:28

  Modified:    src/main/org/jboss/seam/remoting  SeamRemotingServlet.java
  Log:
  fixed compiler warnings
  
  Revision  Changes    Path
  1.13      +143 -142  jboss-seam/src/main/org/jboss/seam/remoting/SeamRemotingServlet.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: SeamRemotingServlet.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/remoting/SeamRemotingServlet.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -b -r1.12 -r1.13
  --- SeamRemotingServlet.java	16 Dec 2006 02:58:12 -0000	1.12
  +++ SeamRemotingServlet.java	21 Dec 2006 02:38:27 -0000	1.13
  @@ -28,7 +28,10 @@
    */
   public class SeamRemotingServlet extends HttpServlet
   {
  -  private static final LogProvider log = Logging.getLogProvider(SeamServletFilter.class);
  +   private static final long serialVersionUID = -701000241772063743L;
  +
  +   private static final LogProvider log = Logging
  +         .getLogProvider(SeamServletFilter.class);
   
     private static final Pattern pathPattern = Pattern.compile("/(.*?)/([^/]+)");
   
  @@ -37,10 +40,10 @@
     private ServletContext servletContext;
   
     /**
  -   *  We use a Map for this because a Servlet can serve
  -   *  requests for more than one context path.
  +    * We use a Map for this because a Servlet can serve requests for more than
  +    * one context path.
      */
  -  private Map<String,byte[]> cachedConfig = new HashMap<String,byte[]>();
  +   private Map<String, byte[]> cachedConfig = new HashMap<String, byte[]>();
   
     /**
      * Initialise the Remoting servlet
  @@ -49,8 +52,7 @@
      * @throws ServletException
      */
     @Override
  -  public void init(ServletConfig config)
  -      throws ServletException
  +   public void init(ServletConfig config) throws ServletException
     {
       servletContext = config.getServletContext();
     }
  @@ -64,13 +66,12 @@
   
     @Override
     protected void doPost(HttpServletRequest request,
  -                        HttpServletResponse response)
  -      throws ServletException, IOException
  +         HttpServletResponse response) throws ServletException, IOException
     {
       try
       {
  -      RequestHandler handler = RequestHandlerFactory.getInstance().
  -          getRequestHandler(request.getPathInfo());
  +         RequestHandler handler = RequestHandlerFactory.getInstance()
  +               .getRequestHandler(request.getPathInfo());
         if (handler != null)
         {
           handler.setServletContext(servletContext);
  @@ -89,8 +90,8 @@
               writeResource(resource, response.getOutputStream());
               if ("remote.js".equals(resource))
               {
  -              appendConfig(response.getOutputStream(), request.getContextPath(),
  -                  request.getSession(), request);
  +                     appendConfig(response.getOutputStream(), request
  +                           .getContextPath(), request.getSession(), request);
               }
             }
           }
  @@ -103,13 +104,13 @@
     }
   
     /**
  -   * Appends various configuration options to the remoting javascript client api.
  +    * Appends various configuration options to the remoting javascript client
  +    * api.
      *
      * @param out OutputStream
      */
     private void appendConfig(OutputStream out, String contextPath,
  -                            HttpSession session, ServletRequest request)
  -      throws IOException
  +         HttpSession session, ServletRequest request) throws IOException
     {
       if (!cachedConfig.containsKey(contextPath))
         initConfig(contextPath, session, request);
  @@ -123,8 +124,8 @@
      *
      * @param contextPath String
      */
  -  private synchronized void initConfig(String contextPath, HttpSession session,
  -                                       ServletRequest request)
  +   private synchronized void initConfig(String contextPath,
  +         HttpSession session, ServletRequest request)
     {
       if (!cachedConfig.containsKey(contextPath))
       {
  
  
  



More information about the jboss-cvs-commits mailing list