热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

org.codehaus.enunciate.config.EnunciateConfiguration.getDefaultRestSubcontext()方法的使用及代码示例

本文整理了Java中org.codehaus.enunciate.config.EnunciateConfiguration.getDefaultRestSubcontext()

本文整理了Java中org.codehaus.enunciate.config.EnunciateConfiguration.getDefaultRestSubcontext()方法的一些代码示例,展示了EnunciateConfiguration.getDefaultRestSubcontext()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。EnunciateConfiguration.getDefaultRestSubcontext()方法的具体详情如下:
包路径:org.codehaus.enunciate.config.EnunciateConfiguration
类名称:EnunciateConfiguration
方法名:getDefaultRestSubcontext

EnunciateConfiguration.getDefaultRestSubcontext介绍

[英]The default rest context.
[中]默认的rest上下文。

代码示例

代码示例来源:origin: org.codehaus.enunciate/enunciate-full

protected String getSubcontext(EnunciateConfiguration config) {
return config.getDefaultRestSubcontext();
}

代码示例来源:origin: org.codehaus.enunciate/enunciate-rest

protected String getRestSubcontext() {
String restSubcOntext= getEnunciate().getConfig().getDefaultRestSubcontext();
//todo: override default rest subcontext?
return restSubcontext;
}

代码示例来源:origin: org.codehaus.enunciate/enunciate-docs

@Override
public void initModel(EnunciateFreemarkerModel model) {
super.initModel(model);
if (!getModelInternal().getNamespacesToWSDLs().isEmpty()) {
String docsDir = getDocsDir() == null ? "" : getDocsDir();
if (!docsDir.startsWith("/")) {
docsDir = "/" + docsDir;
}
while (docsDir.endsWith("/")) {
docsDir = docsDir.substring(0, docsDir.length() - 1);
}
for (WsdlInfo wsdlInfo : getModelInternal().getNamespacesToWSDLs().values()) {
Object filename = wsdlInfo.getProperty("filename");
if (filename != null) {
wsdlInfo.setProperty("redirectLocation", docsDir + "/" + filename);
}
}
}
EnunciateConfiguration cOnfig= model.getEnunciateConfig();
for (RootResource resource : model.getRootResources()) {
for (ResourceMethod resourceMethod : resource.getResourceMethods(true)) {
if (!resourceMethod.getMetaData().containsKey("defaultSubcontext")) {
//if we don't have the defaultSubcontext set by some other jax-rs implementation provider module
//then we need to set it ourselves.
resourceMethod.putMetaData("defaultSubcontext", cOnfig== null ? "/rest" : config.getDefaultRestSubcontext());
}
}
}
}

代码示例来源:origin: org.codehaus.enunciate/enunciate-full

model.put("springDispatcherServletClass", getDispatcherServletClass());
model.put("soapAddressPath", new SoapAddressPathMethod());
model.put("restSubcontext", model.getEnunciateConfig().getDefaultRestSubcontext());
model.put("displayName", model.getEnunciateConfig().getLabel());
if (!globalServiceInterceptors.isEmpty()) {

推荐阅读
  • 深入解析Spring Cloud Ribbon负载均衡机制
    本文详细介绍了Spring Cloud中的Ribbon组件如何实现服务调用的负载均衡。通过分析其工作原理、源码结构及配置方式,帮助读者理解Ribbon在分布式系统中的重要作用。 ... [详细]
  • 本文详细介绍了Java中org.neo4j.helpers.collection.Iterators.single()方法的功能、使用场景及代码示例,帮助开发者更好地理解和应用该方法。 ... [详细]
  • Explore a common issue encountered when implementing an OAuth 1.0a API, specifically the inability to encode null objects and how to resolve it. ... [详细]
  • 本文详细介绍了Java中org.eclipse.ui.forms.widgets.ExpandableComposite类的addExpansionListener()方法,并提供了多个实际代码示例,帮助开发者更好地理解和使用该方法。这些示例来源于多个知名开源项目,具有很高的参考价值。 ... [详细]
  • 本文详细介绍了Java编程语言中的核心概念和常见面试问题,包括集合类、数据结构、线程处理、Java虚拟机(JVM)、HTTP协议以及Git操作等方面的内容。通过深入分析每个主题,帮助读者更好地理解Java的关键特性和最佳实践。 ... [详细]
  • 本文将介绍如何编写一些有趣的VBScript脚本,这些脚本可以在朋友之间进行无害的恶作剧。通过简单的代码示例,帮助您了解VBScript的基本语法和功能。 ... [详细]
  • 本文详细介绍了如何构建一个高效的UI管理系统,集中处理UI页面的打开、关闭、层级管理和页面跳转等问题。通过UIManager统一管理外部切换逻辑,实现功能逻辑分散化和代码复用,支持多人协作开发。 ... [详细]
  • 本文详细介绍了如何在 Spring Boot 应用中通过 @PropertySource 注解读取非默认配置文件,包括配置文件的创建、映射类的设计以及确保 Spring 容器能够正确加载这些配置的方法。 ... [详细]
  • 本文详细介绍了 Apache Jena 库中的 Txn.executeWrite 方法,通过多个实际代码示例展示了其在不同场景下的应用,帮助开发者更好地理解和使用该方法。 ... [详细]
  • 优化ListView性能
    本文深入探讨了如何通过多种技术手段优化ListView的性能,包括视图复用、ViewHolder模式、分批加载数据、图片优化及内存管理等。这些方法能够显著提升应用的响应速度和用户体验。 ... [详细]
  • 本文详细介绍了 GWT 中 PopupPanel 类的 onKeyDownPreview 方法,提供了多个代码示例及应用场景,帮助开发者更好地理解和使用该方法。 ... [详细]
  • 技术分享:从动态网站提取站点密钥的解决方案
    本文探讨了如何从动态网站中提取站点密钥,特别是针对验证码(reCAPTCHA)的处理方法。通过结合Selenium和requests库,提供了详细的代码示例和优化建议。 ... [详细]
  • 1:有如下一段程序:packagea.b.c;publicclassTest{privatestaticinti0;publicintgetNext(){return ... [详细]
  • RecyclerView初步学习(一)
    RecyclerView初步学习(一)ReCyclerView提供了一种插件式的编程模式,除了提供ViewHolder缓存模式,还可以自定义动画,分割符,布局样式,相比于传统的ListVi ... [详细]
  • 本文详细介绍了Java中org.w3c.dom.Text类的splitText()方法,通过多个代码示例展示了其实际应用。该方法用于将文本节点在指定位置拆分为两个节点,并保持在文档树中。 ... [详细]
author-avatar
那0年_277
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有