List of usage examples for org.w3c.dom Element getAttribute
public String getAttribute(String name);
From source file:com.springcryptoutils.core.spring.signature.Base64EncodedSignerBeanDefinitionParser.java
protected void doParse(Element element, BeanDefinitionBuilder bean) { bean.addPropertyReference("privateKey", element.getAttribute("privateKey-ref")); bean.addPropertyValue("algorithm", element.getAttribute("algorithm")); bean.addPropertyValue("charsetName", element.getAttribute("charset")); }
From source file:com.frank.search.solr.server.config.EmbeddedSolrServerBeanDefinitionParser.java
private void setSolrHome(Element element, BeanDefinitionBuilder builder) { String solrHome = element.getAttribute("solrHome"); if (StringUtils.hasText(solrHome)) { builder.addPropertyValue("solrHome", solrHome); }//from ww w .jav a 2s . c o m }
From source file:com.springcryptoutils.core.spring.cipher.asymmetric.Base64EncodedAsymmetricCiphererBeanDefinitionParser.java
@Override protected void doParse(Element element, BeanDefinitionBuilder bean) { bean.addPropertyValue("algorithm", element.getAttribute("algorithm")); bean.addPropertyValue("mode", element.getAttribute("mode")); bean.addPropertyValue("charsetName", element.getAttribute("charset")); bean.addPropertyReference("key", element.getAttribute("key-ref")); bean.addPropertyValue("provider", element.getAttribute("provider")); }
From source file:com.springcryptoutils.core.spring.key.PrivateKeyRegistryByAliasBeanDefinitionParser.java
protected void doParse(Element element, BeanDefinitionBuilder bean) { bean.addPropertyReference("keyStoreRegistry", element.getAttribute("keystoreRegistry-ref")); }
From source file:com.springcryptoutils.core.spring.mac.Base64EncodedMacBeanDefinitionParser.java
@Override protected void doParse(Element element, BeanDefinitionBuilder bean) { bean.addPropertyReference("secretKey", element.getAttribute("secretKey-ref")); bean.addPropertyValue("algorithm", element.getAttribute("algorithm")); bean.addPropertyValue("provider", element.getAttribute("provider")); }
From source file:com.springcryptoutils.core.spring.signature.VerifierBeanDefinitionParser.java
@Override protected void doParse(Element element, BeanDefinitionBuilder bean) { bean.addPropertyReference("publicKey", element.getAttribute("publicKey-ref")); bean.addPropertyValue("algorithm", element.getAttribute("algorithm")); bean.addPropertyValue("provider", element.getAttribute("provider")); }
From source file:com.newlandframework.rpc.spring.NettyRpcServiceParser.java
public BeanDefinition parse(Element element, ParserContext parserContext) { String interfaceName = element.getAttribute("interfaceName"); String ref = element.getAttribute("ref"); RootBeanDefinition beanDefinition = new RootBeanDefinition(); beanDefinition.setBeanClass(NettyRpcService.class); beanDefinition.setLazyInit(false);//from ww w .j av a2 s.c o m beanDefinition.getPropertyValues().addPropertyValue("interfaceName", interfaceName); beanDefinition.getPropertyValues().addPropertyValue("ref", ref); parserContext.getRegistry().registerBeanDefinition(interfaceName, beanDefinition); return beanDefinition; }
From source file:com.springcryptoutils.core.spring.cipher.asymmetric.Base64EncodedAsymmetricCiphererWithChooserByKeyIdBeanDefinitionParser.java
@Override protected void doParse(Element element, BeanDefinitionBuilder bean) { bean.addPropertyValue("algorithm", element.getAttribute("algorithm")); bean.addPropertyValue("mode", element.getAttribute("mode")); bean.addPropertyValue("charsetName", element.getAttribute("charset")); bean.addPropertyReference("keyMap", element.getAttribute("keyMap-ref")); bean.addPropertyValue("provider", element.getAttribute("provider")); }
From source file:com.springcryptoutils.core.spring.cipher.symmetric.Base64EncodedSymmetricCiphererWithStaticKeyBeanDefinitionParser.java
@Override protected void doParse(Element element, BeanDefinitionBuilder bean) { bean.addPropertyValue("key", element.getAttribute("key")); bean.addPropertyValue("initializationVector", element.getAttribute("initializationVector")); bean.addPropertyValue("keyAlgorithm", element.getAttribute("keyAlgorithm")); bean.addPropertyValue("cipherAlgorithm", element.getAttribute("cipherAlgorithm")); bean.addPropertyValue("mode", element.getAttribute("mode")); bean.addPropertyValue("chunkOutput", element.getAttribute("chunkOutput")); bean.addPropertyValue("charsetName", element.getAttribute("charset")); bean.addPropertyValue("provider", element.getAttribute("provider")); }
From source file:com.springcryptoutils.core.spring.cipher.symmetric.SymmetricCiphererBeanDefinitionParser.java
@Override protected void doParse(Element element, BeanDefinitionBuilder bean) { bean.addPropertyValue("keyAlgorithm", element.getAttribute("keyAlgorithm")); bean.addPropertyValue("cipherAlgorithm", element.getAttribute("cipherAlgorithm")); bean.addPropertyValue("mode", element.getAttribute("mode")); bean.addPropertyValue("provider", element.getAttribute("provider")); }