本文整理了Java中org.restlet.resource.Directory.setIndexName()
方法的一些代码示例,展示了Directory.setIndexName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Directory.setIndexName()
方法的具体详情如下:
包路径:org.restlet.resource.Directory
类名称:Directory
方法名:setIndexName
[英]Sets the index name, without extensions.
[中]设置索引名,不带扩展名。
代码示例来源:origin: stackoverflow.com
Directory directory = new Directory(getContext(), "war:///doc");
directory.setIndexName("index.html");
代码示例来源:origin: gofore/aws-training
private Directory rootTarget() {
Directory directory = new UtfDirectory(getContext(), "clap://class/static/");
directory.setDeeplyAccessible(true);
directory.setIndexName(INDEX);
return directory;
}
代码示例来源:origin: org.restlet.osgi/org.restlet.ext.osgi
/**
* Creates the Restlet Directory instance using the rootUri, indexName,
* deeplyAccessible, modifiable, and negotiatingContent service properties
*
* @param context
* the Restlet application context
* @return the configured Restlet Directory
*/
protected Directory createDirectory(Context context) {
Directory directory = new Directory(context, rootUri);
directory.setIndexName(indexName);
directory.setDeeplyAccessible(deeplyAccessible);
directory.setModifiable(modifiable);
directory.setNegotiatingContent(negotiatingContent);
return directory;
}
内容来源于网络,如有侵权,请联系作者删除!