org.fusesource.fabric.maven.impl
Class MavenProxyServletSupport
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.fusesource.fabric.maven.impl.MavenProxyServletSupport
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, MavenProxy
- Direct Known Subclasses:
- MavenDownloadProxyServlet
public class MavenProxyServletSupport
- extends javax.servlet.http.HttpServlet
- implements MavenProxy
- See Also:
- Serialized Form
|
Field Summary |
protected java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.Object> |
artifactLocks
|
protected java.lang.String |
checksumPolicy
|
protected java.lang.String |
localRepository
|
protected static java.util.logging.Logger |
LOGGER
|
protected java.lang.String |
remoteRepositories
|
protected java.util.List<org.sonatype.aether.repository.RemoteRepository> |
repositories
|
protected org.sonatype.aether.RepositorySystemSession |
session
|
protected org.sonatype.aether.RepositorySystem |
system
|
protected java.io.File |
tmpFolder
|
protected java.lang.String |
updatePolicy
|
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOGGER
protected static final java.util.logging.Logger LOGGER
localRepository
protected java.lang.String localRepository
remoteRepositories
protected java.lang.String remoteRepositories
updatePolicy
protected java.lang.String updatePolicy
checksumPolicy
protected java.lang.String checksumPolicy
repositories
protected java.util.List<org.sonatype.aether.repository.RemoteRepository> repositories
system
protected org.sonatype.aether.RepositorySystem system
session
protected org.sonatype.aether.RepositorySystemSession session
artifactLocks
protected java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.Object> artifactLocks
tmpFolder
protected java.io.File tmpFolder
MavenProxyServletSupport
public MavenProxyServletSupport()
start
public void start()
throws java.io.IOException
- Specified by:
start in interface MavenProxy
- Throws:
java.io.IOException
stop
public void stop()
- Specified by:
stop in interface MavenProxy
download
public java.io.File download(java.lang.String path)
throws InvalidMavenArtifactRequest
- Description copied from interface:
MavenProxy
- Downloads a
File from the MavenProxy.
- Specified by:
download in interface MavenProxy
- Parameters:
path - The path from which to download the File.
- Returns:
-
- Throws:
InvalidMavenArtifactRequest
upload
public boolean upload(java.io.InputStream is,
java.lang.String path)
throws InvalidMavenArtifactRequest
- Description copied from interface:
MavenProxy
- Upload a
File to the MavenProxy.
- Specified by:
upload in interface MavenProxy
- Parameters:
is - The InputStream to upload.path - The upload path.
- Returns:
- true/false based on the outcome of the upload.
- Throws:
InvalidMavenArtifactRequest
newSession
protected org.sonatype.aether.RepositorySystemSession newSession(org.sonatype.aether.RepositorySystem system,
java.lang.String localRepository)
newRepositorySystem
protected org.sonatype.aether.RepositorySystem newRepositorySystem()
convertToMavenUrl
public java.lang.String convertToMavenUrl(java.lang.String location)
throws InvalidMavenArtifactRequest
- Throws:
InvalidMavenArtifactRequest
setLocalRepository
public void setLocalRepository(java.lang.String localRepository)
getRemoteRepositories
public java.lang.String getRemoteRepositories()
setRemoteRepositories
public void setRemoteRepositories(java.lang.String remoteRepositories)
getRepositories
public java.util.List<org.sonatype.aether.repository.RemoteRepository> getRepositories()
getUpdatePolicy
public java.lang.String getUpdatePolicy()
setUpdatePolicy
public void setUpdatePolicy(java.lang.String updatePolicy)
getChecksumPolicy
public java.lang.String getChecksumPolicy()
setChecksumPolicy
public void setChecksumPolicy(java.lang.String checksumPolicy)
Copyright © 2012 FuseSource. All Rights Reserved.