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
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
protected AgentClassServer
protected static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
calculateResult
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) collapseParamMapToStringMap
(javax.servlet.http.HttpServletRequest request) protected void
copyToResponse
(javax.servlet.http.HttpServletResponse httpServletResponse, int contentLength, String contentType, InputStream in) protected final void
doGet
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) protected final void
doPost
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) protected final @Nullable AgentServerManager
protected static Set<FileHashDescriptor>
getFileHashDescriptors
(javax.servlet.http.HttpServletRequest request) protected final void
verifyFingerPrintAndCalculateResult
(@NotNull javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) protected void
writeClasspathToOutputStream
(@NotNull ClassServerManifest classServerManifest, @NotNull OutputStream outputStream, String source) Methods inherited from class com.atlassian.bamboo.servlet.BambooHttpServlet
init
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, log, log
-
Field Details
-
APPLICATION_OCTET_STREAM
- See Also:
-
PRODUCED_BY_ATLASSIAN_BAMBOO
- See Also:
-
classServerService
-
-
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 classjavax.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 classjavax.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
-
writeClasspathToOutputStream
protected void writeClasspathToOutputStream(@NotNull @NotNull ClassServerManifest classServerManifest, @NotNull @NotNull OutputStream outputStream, String source) throws IOException - Throws:
IOException
-
collapseParamMapToStringMap
-
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
-