public class ArtifactUtil extends Object
| Constructor and Description |
|---|
ArtifactUtil() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.http.HttpResponse |
getHttpResponseFromArtifact(Artifact artifact) |
static InputStream |
getHttpResponseStreamFromArtifact(Artifact artifact) |
static InputStream |
getHttpResponseStreamFromHttpResponse(org.apache.http.HttpResponse response) |
static void |
writeHttpResponse(org.apache.http.HttpResponse response,
OutputStream output) |
static void |
writeHttpResponseHeader(org.apache.http.HttpResponse response,
org.apache.http.impl.io.SessionOutputBufferImpl outputBuffer) |
static void |
writeHttpResponseStream(Artifact artifact,
OutputStream output) |
public static InputStream getHttpResponseStreamFromArtifact(Artifact artifact) throws IOException, org.apache.http.HttpException
IOExceptionorg.apache.http.HttpExceptionpublic static org.apache.http.HttpResponse getHttpResponseFromArtifact(Artifact artifact) throws org.apache.http.HttpException, IOException
org.apache.http.HttpExceptionIOExceptionpublic static InputStream getHttpResponseStreamFromHttpResponse(org.apache.http.HttpResponse response) throws IOException
IOExceptionpublic static void writeHttpResponseStream(Artifact artifact, OutputStream output) throws IOException, org.apache.http.HttpException
IOExceptionorg.apache.http.HttpExceptionpublic static void writeHttpResponseHeader(org.apache.http.HttpResponse response,
org.apache.http.impl.io.SessionOutputBufferImpl outputBuffer)
throws IOException
IOExceptionpublic static void writeHttpResponse(org.apache.http.HttpResponse response,
OutputStream output)
throws IOException
IOExceptionCopyright © 2000–2018 LOCKSS Program. All rights reserved.