Package dev.sigstore.tuf
Class HttpFetcher
- java.lang.Object
-
- dev.sigstore.tuf.HttpFetcher
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]fetchResource(java.lang.String filename, int maxLength)java.lang.StringgetSource()static HttpFetchernewFetcher(java.net.URL mirror)
-
-
-
Method Detail
-
newFetcher
public static HttpFetcher newFetcher(java.net.URL mirror) throws java.net.MalformedURLException
- Throws:
java.net.MalformedURLException
-
fetchResource
public byte[] fetchResource(java.lang.String filename, int maxLength) throws java.io.IOException, FileExceedsMaxLengthException- Specified by:
fetchResourcein interfaceFetcher- Throws:
java.io.IOExceptionFileExceedsMaxLengthException
-
-