- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中com.google.api.client.xml.XmlNamespaceDictionary.set()
方法的一些代码示例,展示了XmlNamespaceDictionary.set()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XmlNamespaceDictionary.set()
方法的具体详情如下:
包路径:com.google.api.client.xml.XmlNamespaceDictionary
类名称:XmlNamespaceDictionary
方法名:set
[英]Adds a namespace of the given alias and URI.
If the uri is null, the namespace alias will be removed. Similarly, if the alias is null, the namespace URI will be removed. Otherwise, if the alias is already mapped to a different URI, it will be remapped to the new URI. Similarly, if a URI is already mapped to a different alias, it will be remapped to the new alias.
[中]添加给定别名和URI的命名空间。
如果uri为null,则将删除名称空间别名。类似地,如果别名为null,则将删除名称空间URI。否则,如果别名已经映射到另一个URI,它将被重新映射到新的URI。类似地,如果一个URI已经映射到另一个别名,它将被重新映射到新的别名。
代码示例来源:origin: io.minio/minio
/**
* Constructs a new CreateBucketConfiguration object with given location constraint.
*/
public CreateBucketConfiguration(String locationConstraint) throws XmlPullParserException {
super();
super.name = "CreateBucketConfiguration";
super.namespaceDictionary.set("", "http://s3.amazonaws.com/doc/2006-03-01/");
this.locationConstraint = locationConstraint;
}
代码示例来源:origin: minio/minio-java
/**
* Constructs new delete request for given object list and quiet flag.
*/
public DeleteRequest(List<DeleteObject> objectList, boolean quiet) throws XmlPullParserException {
super();
super.name = "Delete";
super.namespaceDictionary.set("", "http://s3.amazonaws.com/doc/2006-03-01/");
this.objectList = objectList;
this.quiet = quiet;
}
}
代码示例来源:origin: io.minio/minio
/**
* Constructs a new notification configuration with default namespace.
*/
public NotificationConfiguration() throws XmlPullParserException {
super();
super.name = "NotificationConfiguration";
super.namespaceDictionary.set("", "http://s3.amazonaws.com/doc/2006-03-01/");
}
代码示例来源:origin: io.minio/minio
/**
* Constructs new delete request for given object list and quiet flag.
*/
public DeleteRequest(List<DeleteObject> objectList, boolean quiet) throws XmlPullParserException {
super();
super.name = "Delete";
super.namespaceDictionary.set("", "http://s3.amazonaws.com/doc/2006-03-01/");
this.objectList = objectList;
this.quiet = quiet;
}
}
代码示例来源:origin: minio/minio-java
/**
* Constructs a new notification configuration with default namespace.
*/
public NotificationConfiguration() throws XmlPullParserException {
super();
super.name = "NotificationConfiguration";
super.namespaceDictionary.set("", "http://s3.amazonaws.com/doc/2006-03-01/");
}
代码示例来源:origin: minio/minio-java
/**
* Constructs a new CreateBucketConfiguration object with given location constraint.
*/
public CreateBucketConfiguration(String locationConstraint) throws XmlPullParserException {
super();
super.name = "CreateBucketConfiguration";
super.namespaceDictionary.set("", "http://s3.amazonaws.com/doc/2006-03-01/");
this.locationConstraint = locationConstraint;
}
代码示例来源:origin: io.minio/minio
/**
* Constucts a new CompleteMultipartUpload object with given parts.
*/
public CompleteMultipartUpload(Part[] parts) throws XmlPullParserException {
super();
super.name = "CompleteMultipartUpload";
super.namespaceDictionary.set("", "http://s3.amazonaws.com/doc/2006-03-01/");
if (parts == null) {
this.partList = null;
} else {
this.partList = Arrays.asList(parts);
}
}
代码示例来源:origin: minio/minio-java
/**
* Constucts a new CompleteMultipartUpload object with given parts.
*/
public CompleteMultipartUpload(Part[] parts) throws XmlPullParserException {
super();
super.name = "CompleteMultipartUpload";
super.namespaceDictionary.set("", "http://s3.amazonaws.com/doc/2006-03-01/");
if (parts == null) {
this.partList = null;
} else {
this.partList = Arrays.asList(parts);
}
}
代码示例来源:origin: stackoverflow.com
NAMESPACE_DICTIONARY.set("", "http://www.w3.org/2005/Atom");
NAMESPACE_DICTIONARY.set("app", "http://www.w3.org/2007/app");
NAMESPACE_DICTIONARY.set("batch", "http://schemas.google.com/gdata/batch");
NAMESPACE_DICTIONARY.set("docs", "http://schemas.google.com/docs/2007");
NAMESPACE_DICTIONARY.set("gs", "http://schemas.google.com/spreadsheets/2006");
NAMESPACE_DICTIONARY.set("gd", "http://schemas.google.com/g/2005");
NAMESPACE_DICTIONARY.set("gsx", "http://schemas.google.com/spreadsheets/2006/extended");
NAMESPACE_DICTIONARY.set("openSearch", "http://a9.com/-/spec/opensearch/1.1/");
NAMESPACE_DICTIONARY.set("xml", "http://www.w3.org/XML/1998/namespace");
代码示例来源:origin: minio/minio-java
/**
* Constructs a new XmlEntity class.
*/
public XmlEntity() throws XmlPullParserException {
super.namespaceDictionary = new XmlNamespaceDictionary();
super.namespaceDictionary.set("s3", "http://s3.amazonaws.com/doc/2006-03-01/");
super.namespaceDictionary.set("", "");
this.xmlPullParser = Xml.createParser();
this.defaultNamespaceDictionary = new XmlNamespaceDictionary();
}
代码示例来源:origin: UglyTroLL/Douban-Java-SDK-OAuth2
public static void testAtomParse () {
FileInputStream fis = null;
try {
XmlNamespaceDictionary nameSpace = new XmlNamespaceDictionary().set("", "http://www.w3.org/2005/Atom").set("db", "http://www.douban.com/xmlns/").set("gd", "http://schemas.google.com/g/2005").set("openSearch", "http://a9.com/-/spec/opensearchrss/1.0/").set("opensearch", "http://a9.com/-/spec/opensearchrss/1.0/");
XmlObjectParser parser = new XmlObjectParser(nameSpace);
//JsonObjectParser parser = new JsonObjectParser(new JacksonFactory());
fis = new FileInputStream("/home/zwei/doubantestxml");
DoubanPeopleEntry result = parser.parseAndClose(fis, Charset.forName("utf-8"), DoubanPeopleEntry.class);
System.out.println("result : " + result);
} catch (FileNotFoundException ex) {
Logger.getLogger(PlayGround.class.getName()).log(Level.SEVERE, null, ex);
} catch (IOException ex) {
Logger.getLogger(PlayGround.class.getName()).log(Level.SEVERE, null, ex);
} finally {
try {
fis.close();
} catch (IOException ex) {
Logger.getLogger(PlayGround.class.getName()).log(Level.SEVERE, null, ex);
}
}
}
代码示例来源:origin: io.minio/minio
/**
* Constructs a new XmlEntity class.
*/
public XmlEntity() throws XmlPullParserException {
super.namespaceDictionary = new XmlNamespaceDictionary();
super.namespaceDictionary.set("s3", "http://s3.amazonaws.com/doc/2006-03-01/");
super.namespaceDictionary.set("", "");
this.xmlPullParser = Xml.createParser();
this.defaultNamespaceDictionary = new XmlNamespaceDictionary();
}
代码示例来源:origin: io.minio/minio
/**
* Fills up this ErrorResponse object's fields by reading/parsing values from given Reader input stream.
*/
@Override
public void parseXml(Reader reader) throws IOException, XmlPullParserException {
XmlNamespaceDictionary namespaceDictionary = new XmlNamespaceDictionary();
namespaceDictionary.set("", "");
super.parseXml(reader, namespaceDictionary);
}
代码示例来源:origin: minio/minio-java
/**
* Fills up this ErrorResponse object's fields by reading/parsing values from given Reader input stream.
*/
@Override
public void parseXml(Reader reader) throws IOException, XmlPullParserException {
XmlNamespaceDictionary namespaceDictionary = new XmlNamespaceDictionary();
namespaceDictionary.set("", "");
super.parseXml(reader, namespaceDictionary);
}
代码示例来源:origin: com.google.http-client/google-http-client-xml
alias = originalAlias + suffix;
namespaceDictionary.set(alias, namespace);
本文整理了Java中com.google.api.client.xml.XmlNamespaceDictionary.()方法的一些代码示例,展示了XmlNamespaceDictionary.()的
本文整理了Java中com.google.api.client.xml.XmlNamespaceDictionary.set()方法的一些代码示例,展示了XmlNamespaceDictionary.
已关闭。此问题旨在寻求有关书籍、工具、软件库等的建议。不符合Stack Overflow guidelines .它目前不接受答案。 我们不允许提问寻求书籍、工具、软件库等的推荐。您可以编辑问题,以
我是一名优秀的程序员,十分优秀!