org.fusesource.fabric.maven
Interface MavenProxy

All Known Implementing Classes:
MavenDownloadProxyServlet, MavenProxyServletSupport, MavenUploadProxyServlet

public interface MavenProxy


Field Summary
static java.lang.String DOWNLOAD_TYPE
           
static java.lang.String UPLOAD_TYPE
           
 
Method Summary
 java.io.File download(java.lang.String path)
          Downloads a File from the MavenProxy.
 void start()
           
 void stop()
           
 boolean upload(java.io.InputStream is, java.lang.String path)
          Upload a File to the MavenProxy.
 

Field Detail

UPLOAD_TYPE

static final java.lang.String UPLOAD_TYPE
See Also:
Constant Field Values

DOWNLOAD_TYPE

static final java.lang.String DOWNLOAD_TYPE
See Also:
Constant Field Values
Method Detail

start

void start()
           throws java.io.IOException
Throws:
java.io.IOException

stop

void stop()

download

java.io.File download(java.lang.String path)
                      throws InvalidMavenArtifactRequest
Downloads a File from the MavenProxy.

Parameters:
path - The path from which to download the File.
Returns:
Throws:
InvalidMavenArtifactRequest

upload

boolean upload(java.io.InputStream is,
               java.lang.String path)
               throws InvalidMavenArtifactRequest
Upload a File to the MavenProxy.

Parameters:
is - The InputStream to upload.
path - The upload path.
Returns:
true/false based on the outcome of the upload.
Throws:
InvalidMavenArtifactRequest


Copyright © 2013 Red Hat. All Rights Reserved.