• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java SoyException类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.atlassian.soy.renderer.SoyException的典型用法代码示例。如果您正苦于以下问题:Java SoyException类的具体用法?Java SoyException怎么用?Java SoyException使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



SoyException类属于com.atlassian.soy.renderer包,在下文中一共展示了SoyException类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: render

import com.atlassian.soy.renderer.SoyException; //导入依赖的package包/类
private void render(
        HttpServletResponse response,
        Map<String, Object> data) throws IOException, ServletException {
    response.setContentType("text/html;charset=UTF-8");
    try {
        soyTemplateRenderer.render(
                response.getWriter(),
                "ru.andreymarkelov.atlas.plugins.prom-bitbucket-exporter:prom-for-bitbucket-exporter-templates",
                TEMPLATE_NAME,
                data
        );
    } catch (SoyException e) {
        Throwable cause = e.getCause();
        if (cause instanceof IOException) {
            throw (IOException) cause;
        }
        throw new ServletException(e);
    }
}
 
开发者ID:AndreyVMarkelov,项目名称:prom-bitbucket-exporter,代码行数:20,代码来源:AdminMetricsSecurityTokenServlet.java


示例2: render

import com.atlassian.soy.renderer.SoyException; //导入依赖的package包/类
protected void render(HttpServletResponse resp, String templateName, Map<String, Object> data) throws IOException, ServletException
{
	resp.setContentType("text/html;charset=UTF-8");
	try
	{
		soyTemplateRenderer.render(resp.getWriter(), "nl.eernie.bitbucket.bitbucket-webhooks:templates-soy", templateName, data);
	}
	catch (SoyException e)
	{
		Throwable cause = e.getCause();
		if (cause instanceof IOException)
		{
			throw (IOException) cause;
		}
		throw new ServletException(e);
	}
}
 
开发者ID:Eernie,项目名称:bitbucket-webhooks-plugin,代码行数:18,代码来源:RepositoryConfigServlet.java


示例3: render

import com.atlassian.soy.renderer.SoyException; //导入依赖的package包/类
protected void render(HttpServletResponse resp, Map<String, Object> data) throws IOException, ServletException {
    String template = "stash.config.jenkins.job.integration.repositorySettings";
    resp.setContentType("text/html;charset=UTF-8");
    try {
        soyTemplateRenderer.render(resp.getWriter(),
                "com.harms.stash.jenkins-integration-plugin:setting-soy",
                template,
                data);
    } catch (SoyException e) {
        Throwable cause = e.getCause();
        if (cause instanceof IOException) {
            throw (IOException) cause;
        }
        throw new ServletException(e);
    }
}
 
开发者ID:umbrew,项目名称:stash-pullrequest-jenkins,代码行数:17,代码来源:JenkinsIntegrationPluginSettingsServlet.java


示例4: renderView

import com.atlassian.soy.renderer.SoyException; //导入依赖的package包/类
private void renderView(Appendable appendable, Map<String, Object> context) {
    try {
        soyTemplateRenderer.render(appendable, PullRequestSquashSettings.PLUGIN_KEY + ":prsquash-soy-templates",
                FRAGMENT_TEMPLATE, context);
    } catch (SoyException e) {
        throw new TemplateRenderingException("Failed to render " + FRAGMENT_TEMPLATE, e);
    }
}
 
开发者ID:christiangalsterer,项目名称:bitbucket-prsquash-plugin,代码行数:9,代码来源:PullRequestSquashFormFragment.java


示例5: getHtml

import com.atlassian.soy.renderer.SoyException; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public String getHtml()
{
    try
    {
        return soyTemplateRenderer.render(DvcsConstants.SOY_TEMPLATE_PLUGIN_KEY, "dvcs.connector.plugin.soy.advertisement",
                Collections.<String, Object>emptyMap());
    }
    catch (SoyException e)
    {
        logger.error("Unable to do appropriate rendering!", e);
        return "";
    }
}
 
开发者ID:edgehosting,项目名称:jira-dvcs-connector,代码行数:18,代码来源:DvcsTabPanel.java


示例6: render

import com.atlassian.soy.renderer.SoyException; //导入依赖的package包/类
private void render(HttpServletResponse response, String templateName, Map<String, Object> data)
        throws IOException, ServletException {
    pageBuilderService.assembler().resources().requireContext("plugin.adminpage.slack");
    response.setContentType("text/html;charset=UTF-8");
    try {
        soyTemplateRenderer.render(response.getWriter(), PluginMetadata.getCompleteModuleKey("soy-templates"), templateName, data);
    } catch (SoyException e) {
        Throwable cause = e.getCause();
        if (cause instanceof IOException) {
            throw (IOException) cause;
        }
        throw new ServletException(e);
    }
}
 
开发者ID:pragbits,项目名称:stash2slack,代码行数:15,代码来源:SlackGlobalSettingsServlet.java


示例7: render

import com.atlassian.soy.renderer.SoyException; //导入依赖的package包/类
private void render(HttpServletResponse response, String templateName, Map<String, Object> data)
        throws IOException, ServletException {
    pageBuilderService.assembler().resources().requireContext("plugin.page.slack");
    response.setContentType("text/html;charset=UTF-8");
    try {
        soyTemplateRenderer.render(response.getWriter(), PluginMetadata.getCompleteModuleKey("soy-templates"), templateName, data);
    } catch (SoyException e) {
        Throwable cause = e.getCause();
        if (cause instanceof IOException) {
            throw (IOException) cause;
        }
        throw new ServletException(e);
    }
}
 
开发者ID:pragbits,项目名称:stash2slack,代码行数:15,代码来源:SlackSettingsServlet.java


示例8: render

import com.atlassian.soy.renderer.SoyException; //导入依赖的package包/类
private void render(HttpServletResponse resp, String templateName, Map<String, Object> data) throws IOException, ServletException {
    resp.setContentType("text/html;charset=UTF-8");
    try {
        soyTemplateRenderer.render(resp.getWriter(),
                "com.lmig.forge.stash.ssh.stash-ssh-key-enforcer:account-ssh-soy",
                templateName,
                data);
    } catch (SoyException e) {
        Throwable cause = e.getCause();
        if (cause instanceof IOException) {
            throw (IOException) cause;
        }
        throw new ServletException(e);
    }
}
 
开发者ID:libertymutual,项目名称:ssh-key-enforcer-stash,代码行数:16,代码来源:UserKeyManagementServlet.java


示例9: render

import com.atlassian.soy.renderer.SoyException; //导入依赖的package包/类
private void render(HttpServletResponse resp, String templateName, Map<String, Object> data) throws IOException, ServletException {
  webResourceManager.requireResourcesForContext("plugin.page.prevent.deletion");
  resp.setContentType("text/html;charset=UTF-8");
  try {
    soyTemplateRenderer.render(resp.getWriter(), PluginMetadata.getCompleteModuleKey("soy-templates"), templateName, data);
  } catch (SoyException e) {
    Throwable cause = e.getCause();
    if (cause instanceof IOException) {
      throw (IOException) cause;
    }
    throw new ServletException(e);
  }
}
 
开发者ID:RichRelevance,项目名称:StashPRTriggerPlugin,代码行数:14,代码来源:PullRequestSettingServlet.java



注:本文中的com.atlassian.soy.renderer.SoyException类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java DataTransactionResult类代码示例发布时间:2022-05-22
下一篇:
Java OIDCProviderMetadata类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap