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.StringABSENT_ENTRIESprivate static java.lang.StringCOMMIT_REVPROPSprivate static java.lang.StringDEPTHprivate static java.lang.StringEDIT_PIPELINEprivate static java.lang.StringLOG_REVPROPSprivate static java.lang.StringMERGE_INFOprivate SVNAuthenticationmyAuthenticationprivate java.util.SetmyCapabilitiesprivate ISVNConnectormyConnectorprivate SVNAuthenticatormyEncryptorprivate byte[]myHandshakeBufferprivate java.io.InputStreammyInputStreamprivate booleanmyIsCommitRevpropsprivate booleanmyIsCredentialsReceivedprivate booleanmyIsReopeningprivate booleanmyIsSVNDiff1private java.io.InputStreammyLoggingInputStreamprivate java.io.OutputStreammyOutputStreamprivate java.lang.StringmyRealmprivate SVNRepositoryImplmyRepositoryprivate java.lang.StringmyRootprivate static java.lang.StringSVNDIFF1
-
Constructor Summary
Constructors Constructor Description SVNConnection(ISVNConnector connector, SVNRepositoryImpl repository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidaddCapabilities(java.util.List capabilities)voidauthenticate(SVNRepositoryImpl repository)private voidcheckConnection()voidclose()private SVNAuthenticatorcreateSASLAuthenticator()(package private) ISVNConnectorgetConnector()java.io.OutputStreamgetDeltaStream(java.lang.String token)(package private) java.io.InputStreamgetInputStream()(package private) java.io.OutputStreamgetOutputStream()java.lang.StringgetRealm()private voidhandleIOError(SVNException e, boolean readMalformedData)protected voidhandshake(SVNRepositoryImpl repository)protected booleanhasCapability(java.lang.String capability)booleanisCommitRevprops()booleanisConnectionStale()booleanisEncrypted()booleanisSVNDiff1()voidopen(SVNRepositoryImpl repository)java.util.Listread(java.lang.String template, java.util.List items, boolean readMalformedData)SVNItemreadItem(boolean readMalformedData)java.util.ListreadTuple(java.lang.String template, boolean readMalformedData)private voidreceiveRepositoryCredentials(SVNRepositoryImpl repository)voidsetEncrypted(SVNAuthenticator encryptor)(package private) voidsetInputStream(java.io.InputStream is)(package private) voidsetOutputStream(java.io.OutputStream os)private java.io.InputStreamskipLeadingGrabage(int attempt)voidwrite(java.lang.String template, java.lang.Object[] items)voidwriteError(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()
-
-