com.atlassian.bamboo.agent.classserver
Class AgentServerServlet

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

public abstract class AgentServerServlet
extends javax.servlet.http.HttpServlet

See Also:
Serialized Form

Field Summary
protected static java.lang.String APPLICATION_OCTET_STREAM
           
 
Constructor Summary
AgentServerServlet()
           
 
Method Summary
protected abstract  void calculateResult(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
           
protected  void copyToResponse(javax.servlet.http.HttpServletResponse httpServletResponse, int contentLength, java.lang.String contentType, java.io.InputStream in)
           
protected  void doGet(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
           
protected  AgentServerManager getAgentServerManager()
           
protected  boolean isFingerprintValid(java.lang.String fingerprint)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, 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
 

Field Detail

APPLICATION_OCTET_STREAM

protected static final java.lang.String APPLICATION_OCTET_STREAM
See Also:
Constant Field Values
Constructor Detail

AgentServerServlet

public AgentServerServlet()
Method Detail

doGet

protected final void doGet(javax.servlet.http.HttpServletRequest httpServletRequest,
                           javax.servlet.http.HttpServletResponse httpServletResponse)
                    throws java.io.IOException
Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
java.io.IOException

calculateResult

protected abstract void calculateResult(javax.servlet.http.HttpServletRequest httpServletRequest,
                                        javax.servlet.http.HttpServletResponse httpServletResponse)
                                 throws java.io.IOException,
                                        java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

isFingerprintValid

protected boolean isFingerprintValid(java.lang.String fingerprint)

getAgentServerManager

@Nullable
protected AgentServerManager getAgentServerManager()

copyToResponse

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


Copyright © 2010 Atlassian. All Rights Reserved.