org.drools.guvnor.server.files
Class PackageDeploymentServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.drools.guvnor.server.files.RepositoryServlet
              extended by org.drools.guvnor.server.files.PackageDeploymentServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class PackageDeploymentServlet
extends RepositoryServlet

This servlet deals with providing packages in binary form.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.drools.guvnor.server.files.RepositoryServlet
authorizationHeaderChecker, log
 
Constructor Summary
PackageDeploymentServlet()
           
 
Method Summary
protected  void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Get the binary package.
protected  void doHead(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          This is used for importing legacy DRL.
protected  long getLastModified(javax.servlet.http.HttpServletRequest request)
           
 InputStream zipModel(ModuleItem pkg)
          Zip Model
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doOptions, doPut, doTrace, service, 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

PackageDeploymentServlet

public PackageDeploymentServlet()
Method Detail

getLastModified

protected long getLastModified(javax.servlet.http.HttpServletRequest request)
Overrides:
getLastModified in class javax.servlet.http.HttpServlet

doHead

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

doPost

protected void doPost(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response)
               throws javax.servlet.ServletException,
                      IOException
This is used for importing legacy DRL.

Overrides:
doPost in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
IOException

doGet

protected void doGet(javax.servlet.http.HttpServletRequest req,
                     javax.servlet.http.HttpServletResponse res)
              throws javax.servlet.ServletException,
                     IOException
Get the binary package. This will get the compiled package stuff from either the latest package, or a snapshot.

The end of the URI is of the form: //( | LATEST)

if you pass in "LATEST" it will get the latest (not a snapshot) if it exists. Normally that will only be used when downloading on demand, otherwise you should ONLY use a snapshot as they are always "up to date".

Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
IOException

zipModel

public InputStream zipModel(ModuleItem pkg)
Zip Model



Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.