org.apache.catalina.core.ApplicationContext.setAttributeReadOnly()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(3.1k)|赞(0)|评价(0)|浏览(93)

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

ApplicationContext.setAttributeReadOnly介绍

[英]Set an attribute as read only.
[中]将属性设置为只读。

代码示例

代码示例来源:origin: org.glassfish.main.web/web-core

/**
 * Set an alternate Deployment Descriptor name.
 */
@Override
public void setAltDDName(String altDDName) {
  this.altDDName = altDDName;
  if (context != null) {
    context.setAttribute(Globals.ALT_DD_ATTR,altDDName);
    context.setAttributeReadOnly(Globals.ALT_DD_ATTR);
  }
}

代码示例来源:origin: org.glassfish.main.web/web-core

/**
 * Stores the resources of this application as ServletContext
 * attributes.
 */
private void postResources() {
  getServletContext().setAttribute(
    Globals.RESOURCES_ATTR, getResources());
  context.setAttributeReadOnly(Globals.RESOURCES_ATTR);
  getServletContext().setAttribute(
    Globals.ALTERNATE_RESOURCES_ATTR, getAlternateDocBases());
  context.setAttributeReadOnly(Globals.ALTERNATE_RESOURCES_ATTR);
}

代码示例来源:origin: org.glassfish.main.web/web-core

context.setAttributeReadOnly(ServletContext.TEMPDIR);

代码示例来源:origin: org.glassfish.main.web/web-core

/**
 * Return the servlet context for which this Context is a facade.
 */
@Override
public ServletContext getServletContext() {
  if (context == null) {
    context = new ApplicationContext(this);
    if (altDDName != null
        && context.getAttribute(Globals.ALT_DD_ATTR) == null){
      context.setAttribute(Globals.ALT_DD_ATTR,altDDName);
      context.setAttributeReadOnly(Globals.ALT_DD_ATTR);
    }
  }
  return context.getFacade();
}

代码示例来源:origin: org.jboss.web/jbossweb

context.setAttributeReadOnly(ServletContext.TEMPDIR);

代码示例来源:origin: jboss.web/jbossweb

((ApplicationContext) getServletContext()).setAttributeReadOnly
  (ServletContext.TEMPDIR);

代码示例来源:origin: tomcat/catalina

((ApplicationContext) getServletContext()).setAttributeReadOnly
  (Globals.WORK_DIR_ATTR);

代码示例来源:origin: org.apache.tomcat/tomcat-catalina

context.setAttributeReadOnly(ServletContext.TEMPDIR);

代码示例来源:origin: codefollower/Tomcat-Research

context.setAttributeReadOnly(ServletContext.TEMPDIR);

代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

context.setAttributeReadOnly(ServletContext.TEMPDIR);

代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina

context.setAttributeReadOnly(ServletContext.TEMPDIR);

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

context.setAttributeReadOnly(ServletContext.TEMPDIR);

代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina

context.setAttributeReadOnly(ServletContext.TEMPDIR);

代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9

context.setAttributeReadOnly(ServletContext.TEMPDIR);

代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9

context.setAttributeReadOnly(ServletContext.TEMPDIR);

代码示例来源:origin: org.glassfish.main.web/web-core

setAttributeReadOnly(name);

代码示例来源:origin: org.glassfish.main.web/web-core

getServletContext().setAttribute(ServletContext.ORDERED_LIBS,
  orderedLibs);
context.setAttributeReadOnly(ServletContext.ORDERED_LIBS);

相关文章

ApplicationContext类方法