|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensaml.util.resource.AbstractFilteredResource
edu.internet2.middleware.shibboleth.common.resource.SVNResource
public class SVNResource
A resource representing a file fetch from a Subversion server. This resource will fetch the given resource as follows:
Constructor Summary | |
---|---|
SVNResource(String remote,
String local,
long revision)
Constructor. |
|
SVNResource(String remote,
String local,
long revision,
String username,
String password)
Constructor. |
Method Summary | |
---|---|
protected void |
checkoutOrUpdateResource()
Checks out of updates the local resource. |
protected void |
checkoutResource()
Checks out the remote resource and stores it locally. |
boolean |
exists()
|
InputStream |
getInputStream()
|
org.joda.time.DateTime |
getLastModifiedTime()
|
String |
getLocation()
|
protected org.tmatesoft.svn.core.wc.SVNStatus |
getResourceStatus()
Gets the current status of the resource. |
protected void |
updateResource()
Updates the current local working copy, replacing it with the revision from the remote repository. |
protected boolean |
workingCopyExists()
Checks to see if a working copy of the file already exists. |
Methods inherited from class org.opensaml.util.resource.AbstractFilteredResource |
---|
getResourceFilter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SVNResource(String remote, String local, long revision)
remote
- URL of the remote resourcelocal
- file path to where the local working copy will be keptrevision
- revision of the resource to retrieve or -1 for HEAD revisionpublic SVNResource(String remote, String local, long revision, String username, String password)
remote
- URL of the remote resourcelocal
- file path to where the local working copy will be keptrevision
- revision of the resource to retrieve or -1 for HEAD revisionusername
- username used to authenticate to the remote serverpassword
- password used to authenticate to the remote serverMethod Detail |
---|
public boolean exists() throws org.opensaml.util.resource.ResourceException
org.opensaml.util.resource.ResourceException
public InputStream getInputStream() throws org.opensaml.util.resource.ResourceException
org.opensaml.util.resource.ResourceException
public org.joda.time.DateTime getLastModifiedTime() throws org.opensaml.util.resource.ResourceException
org.opensaml.util.resource.ResourceException
public String getLocation()
protected boolean workingCopyExists()
protected void checkoutOrUpdateResource() throws org.opensaml.util.resource.ResourceException
org.opensaml.util.resource.ResourceException
- thrown if there is a problem communicating with the remote or local repositoryprotected org.tmatesoft.svn.core.wc.SVNStatus getResourceStatus() throws org.opensaml.util.resource.ResourceException
org.opensaml.util.resource.ResourceException
- thrown if there is a problem communicating with the remote or local repositoryprotected void checkoutResource() throws org.opensaml.util.resource.ResourceException
org.opensaml.util.resource.ResourceException
- thrown if there is a problem communicating with the remote or local repositoryprotected void updateResource() throws org.opensaml.util.resource.ResourceException
org.opensaml.util.resource.ResourceException
- thrown if there is a problem communicating with the remote or local repository
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |