Class BootstrapUtils
java.lang.Object
com.atlassian.bamboo.agent.bootstrap.BootstrapUtils
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddFingerprintHeader(AgentContext agentContext, org.apache.http.message.AbstractHttpMessage req) static longcalculateAdlerChecksum(File file) static longcalculateCrc32(File file) static voidcopyResponseToFile(org.apache.http.HttpResponse response, Path file) static voidcopyStream(@NotNull InputStream inputStream, @NotNull OutputStream outputStream) static voidcopyStream(@NotNull InputStream inputStream, @NotNull OutputStream outputStream, @Nullable BootstrapUtils.ProgressMonitor progressMonitor) static voidcopyStreamToFile(InputStream inputStream, Path file)
-
Field Details
-
BUFFER_SIZE
public static final int BUFFER_SIZE- See Also:
-
-
Method Details
-
calculateAdlerChecksum
- Throws:
IOException
-
calculateCrc32
- Throws:
IOException
-
copyStream
public static void copyStream(@NotNull @NotNull InputStream inputStream, @NotNull @NotNull OutputStream outputStream) throws IOException - Throws:
IOException
-
copyStream
public static void copyStream(@NotNull @NotNull InputStream inputStream, @NotNull @NotNull OutputStream outputStream, @Nullable @Nullable BootstrapUtils.ProgressMonitor progressMonitor) throws IOException - Throws:
IOException
-
copyResponseToFile
public static void copyResponseToFile(org.apache.http.HttpResponse response, Path file) throws IOException - Throws:
IOException
-
copyStreamToFile
- Throws:
IOException
-
addFingerprintHeader
public static void addFingerprintHeader(AgentContext agentContext, org.apache.http.message.AbstractHttpMessage req)
-