com.atlassian.bamboo.agent.classserver
Class AgentServerServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.atlassian.bamboo.agent.classserver.AgentServerServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- Direct Known Subclasses:
- ClasspathServlet, GetJarServlet, GetPackageServlet, GetResourceServlet, GetResourcesServlet, PluginArtifactServlet, ResolveURLServlet
public abstract class AgentServerServlet
- extends javax.servlet.http.HttpServlet
- See Also:
- Serialized Form
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, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
APPLICATION_OCTET_STREAM
protected static final java.lang.String APPLICATION_OCTET_STREAM
- See Also:
- Constant Field Values
PRODUCED_BY_ATLASSIAN_BAMBOO
protected static final java.lang.String PRODUCED_BY_ATLASSIAN_BAMBOO
- See Also:
- Constant Field Values
classServerServiceReference
protected final com.google.common.base.Supplier<AgentClassServer> classServerServiceReference
AgentServerServlet
public AgentServerServlet()
doGet
protected final void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
- Overrides:
doGet
in class javax.servlet.http.HttpServlet
- Throws:
java.io.IOException
doPost
protected final void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
- Overrides:
doPost
in class javax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
java.io.IOException
calculateResult
protected abstract void calculateResult(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
verifyFingerPrintAndCalculateResult
protected final void verifyFingerPrintAndCalculateResult(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
- Throws:
java.io.IOException
getFingerprint
protected java.lang.String getFingerprint(javax.servlet.http.HttpServletRequest request)
isFingerprintValid
protected final boolean isFingerprintValid(java.lang.String fingerprint)
getAgentServerManager
@Nullable
protected final AgentServerManager getAgentServerManager()
writeClasspathToOutputStream
protected static void writeClasspathToOutputStream(@NotNull
ClassServerManifest classServerManifest,
@NotNull
java.io.OutputStream outputStream)
throws java.io.IOException
- Throws:
java.io.IOException
collapseParamMapToStringMap
protected static java.util.Map<java.lang.String,java.lang.String> collapseParamMapToStringMap(javax.servlet.http.HttpServletRequest request)
getFileHashDescriptors
protected static java.util.Set<FileHashDescriptor> getFileHashDescriptors(javax.servlet.http.HttpServletRequest request)
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 © 2012 Atlassian. All Rights Reserved.