本文整理汇总了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);
}
}
示例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 "";
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}