public class SVNResourceParser
extends org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
| Modifier and Type | Field and Description |
|---|---|
static String |
CTX_TIMEOUT_ATTRIB_NAME
Configuration element attribute "connectionTimeout" which holds the timeout used when connecting to the SVN server.
|
static QName |
ELEMENT_NAME
Schema type.
|
private org.slf4j.Logger |
log
Logger.
|
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 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.
|
| Constructor and Description |
|---|
SVNResourceParser() |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.beans.factory.config.BeanDefinition |
buildClientManager(Element element,
org.springframework.beans.factory.config.BeanDefinition url,
org.springframework.beans.factory.xml.ParserContext parserContext)
Builds the SVN client manager from the given configuration options.
|
protected void |
doParse(Element element,
org.springframework.beans.factory.xml.ParserContext parserContext,
org.springframework.beans.factory.support.BeanDefinitionBuilder builder) |
protected void |
error(String message,
org.springframework.beans.factory.xml.ParserContext parserContext)
Cause an error with the provided message.
|
protected String |
getAttribute(Element element,
String attributeName,
org.springframework.beans.factory.xml.ParserContext parserContext)
Gets the value of the supplied attribute.
|
protected String |
getAttribute(Element element,
String attributeName,
org.springframework.beans.factory.xml.ParserContext parserContext,
boolean trim)
Gets the value of the supplied attribute.
|
protected Class<?> |
getBeanClass(Element element) |
protected org.springframework.beans.factory.config.BeanDefinition |
getRespositoryUrl(Element element,
org.springframework.beans.factory.xml.ParserContext parserContext)
Gets the value of the "repositoryURL" attribute.
|
protected boolean |
shouldGenerateId() |
doParse, getBeanClassName, getParentName, parseInternalpublic static final QName ELEMENT_NAME
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
private final org.slf4j.Logger log
protected Class<?> getBeanClass(Element element)
getBeanClass in class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParserprotected void doParse(Element element, org.springframework.beans.factory.xml.ParserContext parserContext, org.springframework.beans.factory.support.BeanDefinitionBuilder builder)
doParse in class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser@Nonnull protected org.springframework.beans.factory.config.BeanDefinition buildClientManager(Element element, org.springframework.beans.factory.config.BeanDefinition url, org.springframework.beans.factory.xml.ParserContext parserContext)
element - element bearing the configuration optionsurl - the url for the repositoryparserContext - the contextprotected org.springframework.beans.factory.config.BeanDefinition getRespositoryUrl(Element element, org.springframework.beans.factory.xml.ParserContext parserContext)
element - resource configuration elementparserContext - the context to provide support to error functions.@Nullable protected String getAttribute(Element element, String attributeName, org.springframework.beans.factory.xml.ParserContext parserContext, boolean trim)
element - resource configuration elementparserContext - the parser context. Used to provide the failing location.attributeName - the attribute to look up.trim - whether to trim leading and trailing spaces.@Nullable protected String getAttribute(Element element, String attributeName, org.springframework.beans.factory.xml.ParserContext parserContext)
element - resource configuration elementparserContext - the parser context. Used to provide the failing location.attributeName - the attribute to look up.protected void error(String message, org.springframework.beans.factory.xml.ParserContext parserContext)
message - the message.parserContext - the parser context. Used to provide the failing location.org.springframework.beans.factory.parsing.BeanDefinitionParsingException - if we encounter a filterprotected boolean shouldGenerateId()
shouldGenerateId in class org.springframework.beans.factory.xml.AbstractBeanDefinitionParserCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.