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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
APPLICATION_OCTET_STREAM
protected AgentClassServer
classServerService
protected static String
PRODUCED_BY_ATLASSIAN_BAMBOO
-
Constructor Summary
Constructors Constructor Description AgentServerServlet()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
calculateResult(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
protected static Map<String,String>
collapseParamMapToStringMap(javax.servlet.http.HttpServletRequest request)
protected void
copyToResponse(javax.servlet.http.HttpServletResponse httpServletResponse, int contentLength, String contentType, InputStream in)
protected void
doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
protected void
doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
protected @Nullable AgentServerManager
getAgentServerManager()
protected static Set<FileHashDescriptor>
getFileHashDescriptors(javax.servlet.http.HttpServletRequest request)
protected 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
-
-
-
-
Field Detail
-
APPLICATION_OCTET_STREAM
protected static final String APPLICATION_OCTET_STREAM
- See Also:
- Constant Field Values
-
PRODUCED_BY_ATLASSIAN_BAMBOO
protected static final String PRODUCED_BY_ATLASSIAN_BAMBOO
- See Also:
- Constant Field Values
-
classServerService
@Autowired protected AgentClassServer classServerService
-
-
Method Detail
-
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
@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
-
-