Class AgentServerServlet

java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.atlassian.bamboo.servlet.BambooHttpServlet
com.atlassian.bamboo.agent.classserver.AgentServerServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
Direct Known Subclasses:
GetJarServlet, GetPackageServlet, GetResourceServlet, GetResourcesServlet, PluginArtifactServlet

public abstract class AgentServerServlet extends BambooHttpServlet
See Also:
  • Field Details

  • Constructor Details

    • AgentServerServlet

      public AgentServerServlet()
  • Method Details

    • doGet

      protected final void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
      Overrides:
      doGet in class javax.servlet.http.HttpServlet
      Throws:
      IOException
    • doPost

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

      protected abstract void calculateResult(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, ClassNotFoundException
      Throws:
      IOException
      ClassNotFoundException
    • verifyFingerPrintAndCalculateResult

      protected final void verifyFingerPrintAndCalculateResult(@NotNull @NotNull javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
      Throws:
      IOException
    • getAgentServerManager

      @Nullable protected final @Nullable AgentServerManager getAgentServerManager()
    • writeClasspathToOutputStream

      protected void writeClasspathToOutputStream(@NotNull @NotNull ClassServerManifest classServerManifest, @NotNull @NotNull OutputStream outputStream, String source) throws IOException
      Throws:
      IOException
    • collapseParamMapToStringMap

      protected static Map<String,String> collapseParamMapToStringMap(javax.servlet.http.HttpServletRequest request)
    • getFileHashDescriptors

      protected static Set<FileHashDescriptor> getFileHashDescriptors(javax.servlet.http.HttpServletRequest request)
    • copyToResponse

      protected void copyToResponse(javax.servlet.http.HttpServletResponse httpServletResponse, int contentLength, String contentType, InputStream in) throws IOException
      Throws:
      IOException