|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.beans.factory.xml.AbstractBeanDefinitionParser
org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
edu.internet2.middleware.shibboleth.common.config.resource.AbstractResourceBeanDefinitionParser
edu.internet2.middleware.shibboleth.common.config.resource.SVNResourceBeanDefinitionParser
public class SVNResourceBeanDefinitionParser
Bean definition parser for SVNResource
s.
Field Summary | |
---|---|
static String |
CTX_TIMEOUT_ATTRIB_NAME
Configuration element attribute "connectionTimeout" which holds the timeout used when connecting to the SVN server. |
static int |
DEFAULT_CTX_TIMEOUT
Default value of "connectionTimeout", 3000 milliseconds. |
static int |
DEFAULT_PROXY_PORT
Default value of "proxyPort", 8080 . |
static int |
DEFAULT_READ_TIMEOUT
Default value of "readTimeout", 5000 milliseconds. |
static String |
PASSWORD_ATTRIB_NAME
Configuration element attribute "password" which holds the SVN password. |
static String |
PROXY_HOST_ATTRIB_NAME
Configuration element attribute "proxyHost" which holds the hostname of the proxy server used when connecting to the SVN server. |
static String |
PROXY_PASSWORD_ATTRIB_NAME
Configuration element attribute "proxyPassword" which holds the password used with the proxy server used when connecting to the SVN server. |
static String |
PROXY_PORT_ATTRIB_NAME
Configuration element attribute "proxyPort" which holds the port of the proxy server used when connecting to the SVN server. |
static String |
PROXY_USERNAME_ATTRIB_NAME
Configuration element attribute "proxyUsername" which holds the username used with the proxy server used when connecting to the SVN server. |
static String |
READ_TIMEOUT_ATTRIB_NAME
Configuration element attribute "readTimeout" which holds the timeout used when reading from the SVN server. |
static String |
REPOSITORY_URL_ATTRIB_NAME
Configuration element attribute "repositoryURL" which holds the URL to the remote repository. |
static String |
RESOURCE_FILE_ATTRIB_NAME
Configuration element attribute "resourceFile" which holds the path to the resource file represented by the SVN resource. |
static String |
REVISION_ATTRIB_NAME
Configuration element attribute "revision" which holds the path to the working copy directory. |
static QName |
SCHEMA_TYPE
Schema type. |
static String |
USERNAME_ATTRIB_NAME
Configuration element attribute "username" which holds the SVN username. |
static String |
WORKING_COPY_DIR_ATTRIB_NAME
Configuration element attribute "workingCopyDirectory" which holds the path to the working copy directory. |
Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser |
---|
ID_ATTRIBUTE |
Constructor Summary | |
---|---|
SVNResourceBeanDefinitionParser()
|
Method Summary | |
---|---|
protected org.tmatesoft.svn.core.wc.SVNClientManager |
buildClientManager(Element configElement)
Builds the SVN client manager from the given configuration options. |
protected void |
doParse(Element configElement,
ParserContext parserContext,
BeanDefinitionBuilder builder)
|
protected Class |
getBeanClass(Element arg0)
|
protected int |
getConnectionTimeout(Element configElement)
Gets the value of the "connectionTimeout" attribute. |
protected String |
getPassword(Element configElement)
Gets the value of the "password" attribute. |
protected String |
getProxyHost(Element configElement)
Gets the value of the "proxyHost" attribute. |
protected String |
getProxyPassword(Element configElement)
Gets the value of the "proxyPassword" attribute. |
protected int |
getProxyPort(Element configElement)
Gets the value of the "proxyPort" attribute. |
protected String |
getProxyUsername(Element configElement)
Gets the value of the "proxyUsername" attribute. |
protected int |
getReadTimeout(Element configElement)
Gets the value of the "readTimeout" attribute. |
protected String |
getResourceFile(Element configElement)
Gets the value of the "resourceFile" attribute. |
protected org.tmatesoft.svn.core.SVNURL |
getRespositoryUrl(Element configElement)
Gets the value of the "repositoryURL" attribute. |
protected long |
getRevision(Element configElement)
Gets the value of the "revision" attribute. |
protected String |
getUsername(Element configElement)
Gets the value of the "username" attribute. |
protected File |
getWorkingCopyDirectory(Element configElement)
Gets the value of the "repositoryURL" attribute. |
protected String |
resolveId(Element configElement,
AbstractBeanDefinition beanDefinition,
ParserContext parserContext)
|
Methods inherited from class edu.internet2.middleware.shibboleth.common.config.resource.AbstractResourceBeanDefinitionParser |
---|
addResourceFilter |
Methods inherited from class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser |
---|
doParse, getBeanClassName, getParentName, parseInternal |
Methods inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser |
---|
parse, postProcessComponentDefinition, registerBeanDefinition, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final QName SCHEMA_TYPE
public static final String REPOSITORY_URL_ATTRIB_NAME
public static final String CTX_TIMEOUT_ATTRIB_NAME
public static final String READ_TIMEOUT_ATTRIB_NAME
public static final String WORKING_COPY_DIR_ATTRIB_NAME
public static final String REVISION_ATTRIB_NAME
public static final String RESOURCE_FILE_ATTRIB_NAME
public static final String USERNAME_ATTRIB_NAME
public static final String PASSWORD_ATTRIB_NAME
public static final String PROXY_HOST_ATTRIB_NAME
public static final String PROXY_PORT_ATTRIB_NAME
public static final String PROXY_USERNAME_ATTRIB_NAME
public static final String PROXY_PASSWORD_ATTRIB_NAME
public static final int DEFAULT_CTX_TIMEOUT
public static final int DEFAULT_READ_TIMEOUT
public static final int DEFAULT_PROXY_PORT
Constructor Detail |
---|
public SVNResourceBeanDefinitionParser()
Method Detail |
---|
protected Class getBeanClass(Element arg0)
getBeanClass
in class AbstractSingleBeanDefinitionParser
protected String resolveId(Element configElement, AbstractBeanDefinition beanDefinition, ParserContext parserContext)
resolveId
in class AbstractBeanDefinitionParser
protected void doParse(Element configElement, ParserContext parserContext, BeanDefinitionBuilder builder) throws BeanCreationException
doParse
in class AbstractSingleBeanDefinitionParser
BeanCreationException
protected org.tmatesoft.svn.core.wc.SVNClientManager buildClientManager(Element configElement)
configElement
- element bearing the configuration options
protected org.tmatesoft.svn.core.SVNURL getRespositoryUrl(Element configElement) throws BeanCreationException
configElement
- resource configuration element
BeanCreationException
- thrown if the attribute is missing or contains an invalid SVN URLprotected int getConnectionTimeout(Element configElement) throws BeanCreationException
configElement
- resource configuration element
BeanCreationException
- thrown if the attribute is present but contains an empty stringprotected int getReadTimeout(Element configElement) throws BeanCreationException
configElement
- resource configuration element
BeanCreationException
- thrown if the attribute is present but contains an empty stringprotected File getWorkingCopyDirectory(Element configElement) throws BeanCreationException
configElement
- resource configuration element
BeanCreationException
- thrown if the attribute is missing or contains an invalid directory pathprotected long getRevision(Element configElement) throws BeanCreationException
configElement
- resource configuration element
BeanCreationException
- thrown if the attribute is missing or contains an invalid numberprotected String getResourceFile(Element configElement) throws BeanCreationException
configElement
- resource configuration element
BeanCreationException
- thrown if the attribute is missing or contains an empty stringprotected String getUsername(Element configElement) throws BeanCreationException
configElement
- resource configuration element
BeanCreationException
- thrown if the attribute is present but contains an empty stringprotected String getPassword(Element configElement) throws BeanCreationException
configElement
- resource configuration element
BeanCreationException
- thrown if the attribute is present but contains an empty stringprotected String getProxyHost(Element configElement) throws BeanCreationException
configElement
- resource configuration element
BeanCreationException
- thrown if the attribute is present but contains an empty stringprotected int getProxyPort(Element configElement) throws BeanCreationException
configElement
- resource configuration element
BeanCreationException
- thrown if the attribute is present but contains an empty stringprotected String getProxyUsername(Element configElement) throws BeanCreationException
configElement
- resource configuration element
BeanCreationException
- thrown if the attribute is present but contains an empty stringprotected String getProxyPassword(Element configElement) throws BeanCreationException
configElement
- resource configuration element
BeanCreationException
- thrown if the attribute is present but contains an empty string
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |