Class SVNConnection
- java.lang.Object
-
- org.tmatesoft.svn.core.internal.io.svn.SVNConnection
-
public class SVNConnection extends java.lang.Object
- Version:
- 1.3
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description SVNConnection(ISVNConnector connector, SVNRepositoryImpl repository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
myConnector
private final ISVNConnector myConnector
-
myRealm
private java.lang.String myRealm
-
myRoot
private java.lang.String myRoot
-
myOutputStream
private java.io.OutputStream myOutputStream
-
myInputStream
private java.io.InputStream myInputStream
-
myRepository
private SVNRepositoryImpl myRepository
-
myIsSVNDiff1
private boolean myIsSVNDiff1
-
myIsCommitRevprops
private boolean myIsCommitRevprops
-
myIsReopening
private boolean myIsReopening
-
myIsCredentialsReceived
private boolean myIsCredentialsReceived
-
myLoggingInputStream
private java.io.InputStream myLoggingInputStream
-
myCapabilities
private java.util.Set myCapabilities
-
myHandshakeBuffer
private byte[] myHandshakeBuffer
-
myEncryptor
private SVNAuthenticator myEncryptor
-
myAuthentication
private SVNAuthentication myAuthentication
-
EDIT_PIPELINE
private static final java.lang.String EDIT_PIPELINE
- See Also:
- Constant Field Values
-
SVNDIFF1
private static final java.lang.String SVNDIFF1
- See Also:
- Constant Field Values
-
ABSENT_ENTRIES
private static final java.lang.String ABSENT_ENTRIES
- See Also:
- Constant Field Values
-
COMMIT_REVPROPS
private static final java.lang.String COMMIT_REVPROPS
- See Also:
- Constant Field Values
-
MERGE_INFO
private static final java.lang.String MERGE_INFO
- See Also:
- Constant Field Values
-
DEPTH
private static final java.lang.String DEPTH
- See Also:
- Constant Field Values
-
LOG_REVPROPS
private static final java.lang.String LOG_REVPROPS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SVNConnection
public SVNConnection(ISVNConnector connector, SVNRepositoryImpl repository)
-
-
Method Detail
-
open
public void open(SVNRepositoryImpl repository) throws SVNException
- Throws:
SVNException
-
getRealm
public java.lang.String getRealm()
-
isSVNDiff1
public boolean isSVNDiff1()
-
isCommitRevprops
public boolean isCommitRevprops()
-
skipLeadingGrabage
private java.io.InputStream skipLeadingGrabage(int attempt) throws SVNException
- Throws:
SVNException
-
handshake
protected void handshake(SVNRepositoryImpl repository) throws SVNException
- Throws:
SVNException
-
hasCapability
protected boolean hasCapability(java.lang.String capability)
-
authenticate
public void authenticate(SVNRepositoryImpl repository) throws SVNException
- Throws:
SVNException
-
createSASLAuthenticator
private SVNAuthenticator createSASLAuthenticator() throws SVNException
- Throws:
SVNException
-
addCapabilities
private void addCapabilities(java.util.List capabilities) throws SVNException
- Throws:
SVNException
-
receiveRepositoryCredentials
private void receiveRepositoryCredentials(SVNRepositoryImpl repository) throws SVNException
- Throws:
SVNException
-
setEncrypted
public void setEncrypted(SVNAuthenticator encryptor)
-
isEncrypted
public boolean isEncrypted()
-
close
public void close() throws SVNException
- Throws:
SVNException
-
read
public java.util.List read(java.lang.String template, java.util.List items, boolean readMalformedData) throws SVNException
- Throws:
SVNException
-
readTuple
public java.util.List readTuple(java.lang.String template, boolean readMalformedData) throws SVNException
- Throws:
SVNException
-
readItem
public SVNItem readItem(boolean readMalformedData) throws SVNException
- Throws:
SVNException
-
handleIOError
private void handleIOError(SVNException e, boolean readMalformedData) throws SVNException
- Throws:
SVNException
-
writeError
public void writeError(SVNErrorMessage error) throws SVNException
- Throws:
SVNException
-
write
public void write(java.lang.String template, java.lang.Object[] items) throws SVNException
- Throws:
SVNException
-
isConnectionStale
public boolean isConnectionStale()
-
checkConnection
private void checkConnection() throws SVNException
- Throws:
SVNException
-
getDeltaStream
public java.io.OutputStream getDeltaStream(java.lang.String token)
-
getOutputStream
java.io.OutputStream getOutputStream() throws SVNException
- Throws:
SVNException
-
getInputStream
java.io.InputStream getInputStream() throws SVNException
- Throws:
SVNException
-
setOutputStream
void setOutputStream(java.io.OutputStream os)
-
setInputStream
void setInputStream(java.io.InputStream is)
-
getConnector
ISVNConnector getConnector()
-
-