public class SVNConnection
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
ABSENT_ENTRIES |
private static java.lang.String |
COMMIT_REVPROPS |
private static java.lang.String |
DEPTH |
private static java.lang.String |
EDIT_PIPELINE |
private static java.lang.String |
LOG_REVPROPS |
private static java.lang.String |
MERGE_INFO |
private SVNAuthentication |
myAuthentication |
private java.util.Set |
myCapabilities |
private ISVNConnector |
myConnector |
private SVNAuthenticator |
myEncryptor |
private byte[] |
myHandshakeBuffer |
private java.io.InputStream |
myInputStream |
private boolean |
myIsCommitRevprops |
private boolean |
myIsCredentialsReceived |
private boolean |
myIsReopening |
private boolean |
myIsSVNDiff1 |
private java.io.InputStream |
myLoggingInputStream |
private java.io.OutputStream |
myOutputStream |
private java.lang.String |
myRealm |
private SVNRepositoryImpl |
myRepository |
private java.lang.String |
myRoot |
private static java.lang.String |
SVNDIFF1 |
| Constructor and Description |
|---|
SVNConnection(ISVNConnector connector,
SVNRepositoryImpl repository) |
| Modifier and Type | Method and Description |
|---|---|
private void |
addCapabilities(java.util.List capabilities) |
void |
authenticate(SVNRepositoryImpl repository) |
private void |
checkConnection() |
void |
close() |
private SVNAuthenticator |
createSASLAuthenticator() |
(package private) ISVNConnector |
getConnector() |
java.io.OutputStream |
getDeltaStream(java.lang.String token) |
(package private) java.io.InputStream |
getInputStream() |
(package private) java.io.OutputStream |
getOutputStream() |
java.lang.String |
getRealm() |
private void |
handleIOError(SVNException e,
boolean readMalformedData) |
protected void |
handshake(SVNRepositoryImpl repository) |
protected boolean |
hasCapability(java.lang.String capability) |
boolean |
isCommitRevprops() |
boolean |
isConnectionStale() |
boolean |
isEncrypted() |
boolean |
isSVNDiff1() |
void |
open(SVNRepositoryImpl repository) |
java.util.List |
read(java.lang.String template,
java.util.List items,
boolean readMalformedData) |
SVNItem |
readItem(boolean readMalformedData) |
java.util.List |
readTuple(java.lang.String template,
boolean readMalformedData) |
private void |
receiveRepositoryCredentials(SVNRepositoryImpl repository) |
void |
setEncrypted(SVNAuthenticator encryptor) |
(package private) void |
setInputStream(java.io.InputStream is) |
(package private) void |
setOutputStream(java.io.OutputStream os) |
private java.io.InputStream |
skipLeadingGrabage(int attempt) |
void |
write(java.lang.String template,
java.lang.Object[] items) |
void |
writeError(SVNErrorMessage error) |
private final ISVNConnector myConnector
private java.lang.String myRealm
private java.lang.String myRoot
private java.io.OutputStream myOutputStream
private java.io.InputStream myInputStream
private SVNRepositoryImpl myRepository
private boolean myIsSVNDiff1
private boolean myIsCommitRevprops
private boolean myIsReopening
private boolean myIsCredentialsReceived
private java.io.InputStream myLoggingInputStream
private java.util.Set myCapabilities
private byte[] myHandshakeBuffer
private SVNAuthenticator myEncryptor
private SVNAuthentication myAuthentication
private static final java.lang.String EDIT_PIPELINE
private static final java.lang.String SVNDIFF1
private static final java.lang.String ABSENT_ENTRIES
private static final java.lang.String COMMIT_REVPROPS
private static final java.lang.String MERGE_INFO
private static final java.lang.String DEPTH
private static final java.lang.String LOG_REVPROPS
public SVNConnection(ISVNConnector connector, SVNRepositoryImpl repository)
public void open(SVNRepositoryImpl repository) throws SVNException
SVNExceptionpublic java.lang.String getRealm()
public boolean isSVNDiff1()
public boolean isCommitRevprops()
private java.io.InputStream skipLeadingGrabage(int attempt)
throws SVNException
SVNExceptionprotected void handshake(SVNRepositoryImpl repository) throws SVNException
SVNExceptionprotected boolean hasCapability(java.lang.String capability)
public void authenticate(SVNRepositoryImpl repository) throws SVNException
SVNExceptionprivate SVNAuthenticator createSASLAuthenticator() throws SVNException
SVNExceptionprivate void addCapabilities(java.util.List capabilities)
throws SVNException
SVNExceptionprivate void receiveRepositoryCredentials(SVNRepositoryImpl repository) throws SVNException
SVNExceptionpublic void setEncrypted(SVNAuthenticator encryptor)
public boolean isEncrypted()
public void close()
throws SVNException
SVNExceptionpublic java.util.List read(java.lang.String template,
java.util.List items,
boolean readMalformedData)
throws SVNException
SVNExceptionpublic java.util.List readTuple(java.lang.String template,
boolean readMalformedData)
throws SVNException
SVNExceptionpublic SVNItem readItem(boolean readMalformedData) throws SVNException
SVNExceptionprivate void handleIOError(SVNException e, boolean readMalformedData) throws SVNException
SVNExceptionpublic void writeError(SVNErrorMessage error) throws SVNException
SVNExceptionpublic void write(java.lang.String template,
java.lang.Object[] items)
throws SVNException
SVNExceptionpublic boolean isConnectionStale()
private void checkConnection()
throws SVNException
SVNExceptionpublic java.io.OutputStream getDeltaStream(java.lang.String token)
java.io.OutputStream getOutputStream()
throws SVNException
SVNExceptionjava.io.InputStream getInputStream()
throws SVNException
SVNExceptionvoid setOutputStream(java.io.OutputStream os)
void setInputStream(java.io.InputStream is)
ISVNConnector getConnector()