gpt4 book ai didi

org.seasar.cms.ymir.Ymir类的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 15:47:31 26 4
gpt4 key购买 nike

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

Ymir介绍

暂无

代码示例

代码示例来源:origin: org.seasar.cms.ymir/ymir

S2Container getS2Container() {
    return ymir_.getApplication().getS2Container();
  }
}

代码示例来源:origin: org.seasar.cms.ymir/ymir

public void destroy() {
  if (ymir_ != null) {
    ymir_.destroy();
  }
  YmirContext.setYmir(null);
}

代码示例来源:origin: org.seasar.cms.ymir/ymir

HttpServletResponseFilter constructResponseFilter(
    HttpServletRequest httpRequest, HttpServletResponse httpResponse) {
  return new UpdaterResponseFilter(httpRequest, httpResponse, updaters_,
      ymir_.isUnderDevelopment());
}

代码示例来源:origin: org.seasar.cms.ymir/ymir

Object variableResolver = null;
if (Request.DISPATCHER_INCLUDE.equals(dispatcher_)) {
  backupped = ymir_.backupForInclusion(attributeContainer);
  responseContentType = httpRequest
      .getAttribute(FreyjaServlet.ATTR_RESPONSECONTENTTYPE);
Request request = ymir_.prepareForProcessing(ServletUtils
    .getContextPath(httpRequest),
    ServletUtils.getPath(httpRequest), httpRequest.getMethod(),
    attributeContainer, LocaleUtils.findLocale(httpRequest));
try {
  Response response = ymir_.processRequest(request);
          getContainer()));
  HttpServletResponseFilter responseFilter = ymir_.processResponse(
      context_, httpRequest, httpResponse, request, response);
  if (responseFilter != null) {
  ymir_.processResponse(context_, httpRequest, httpResponse, request,
      ymir_.processException(request, t));
} finally {
  if (Request.DISPATCHER_INCLUDE.equals(dispatcher_)) {
        FreyjaServlet.ATTR_RESPONSECONTENTTYPE,
        responseContentType);
    ymir_.restoreForInclusion(attributeContainer, backupped);

代码示例来源:origin: org.seasar.cms.ymir/ymir

public Ymir init() {
  ymir_ = (Ymir) getContainer().getComponent(Ymir.class);
  YmirContext.setYmir(ymir_);
  initializeApplication(ymir_, getServletContext());
  ymir_.init();
  return ymir_;
}

代码示例来源:origin: org.seasar.cms.ymir/ymir

S2Container getS2Container() {
  return ymir_.getApplication().getS2Container();
}

代码示例来源:origin: org.seasar.cms.ymir/ymir

void updateMessages() {
  if (getYmir().isUnderDevelopment()) {
    init();
  }
}

代码示例来源:origin: org.seasar.cms.ymir/ymir

PathMapping[] getPathMappings() {
  return ymir_.getApplication().getPathMappingProvider()
      .getPathMappings();
}

代码示例来源:origin: org.seasar.cms.ymir/ymir

public Request prepareForProcessing(String contextPath, String path,
    String method, String dispatcher, Map parameterMap,
    Map fileParameterMap, AttributeContainer attributeContainer,
    Locale locale) {
  if (ymir_.isUnderDevelopment()) {
    method = correctMethod(method, parameterMap);
  }
  MatchedPathMapping matched = findMatchedPathMapping(path, method);
  return new RequestImpl(contextPath, path, method, dispatcher,
      parameterMap, fileParameterMap, attributeContainer, locale,
      matched);
}

代码示例来源:origin: org.seasar.cms.ymir/ymir

Messages findMessages(String messagesName) {
  Ymir ymir = YmirContext.getYmir();
  if (ymir == null) {
    return null;
  }
  return (Messages) ymir.getApplication().getS2Container().getComponent(
      messagesName);
}

代码示例来源:origin: org.seasar.cms.ymir/ymir

if (ymir_.isUnderDevelopment()) {
  for (int i = 0; i < updaters_.length; i++) {
    Response response = updaters_[i].updateByException(request, t);

代码示例来源:origin: org.seasar.cms.ymir/ymir-extension

HttpServletRequest getHttpServletRequest() {
    return (HttpServletRequest) YmirContext.getYmir().getApplication()
        .getS2Container().getComponent(HttpServletRequest.class);
  }
}

代码示例来源:origin: org.seasar.cms.ymir/ymir

if (ymir_.isUnderDevelopment()) {
  for (int i = 0; i < updaters_.length; i++) {
    Response newResponse = updaters_[i].update(request, response);

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com