作者:Aovte | 来源:互联网 | 2023-09-17 11:30
本文整理了Java中org.apache.catalina.core.StandardContext.getVersionMajor()方法的一些代码示例,展示了
本文整理了Java中org.apache.catalina.core.StandardContext.getVersionMajor()
方法的一些代码示例,展示了StandardContext.getVersionMajor()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。StandardContext.getVersionMajor()
方法的具体详情如下:
包路径:org.apache.catalina.core.StandardContext
类名称:StandardContext
方法名:getVersionMajor
StandardContext.getVersionMajor介绍
[英]Return the Servlet API version defined for the webapp.
[中]返回为webapp定义的Servlet API版本。
代码示例
代码示例来源:origin: jboss.web/jbossweb
/**
* Set the Servlet API version defined for the webapp.
*
* @param version The version
*/
public void setVersion(String version) {
String oldVersion = this.version;
this.version = version;
getVersionMajor();
getVersionMinor();
support.firePropertyChange("version", oldVersion, version);
}
代码示例来源:origin: jboss.web/jbossweb
public int getEffectiveMajorVersion() {
if (restricted) {
throw new UnsupportedOperationException(sm.getString("applicationContext.restricted"));
}
return context.getVersionMajor();
}
代码示例来源:origin: org.jboss.web/jbossweb
public int getEffectiveMajorVersion() {
if (restricted) {
throw MESSAGES.restrictedListenerCannotCallMethod();
}
return context.getVersionMajor();
}
代码示例来源:origin: org.jboss.web/jbossweb
/**
* Set the Servlet API version defined for the webapp.
*
* @param version The version
*/
public void setVersion(String version) {
String oldVersion = this.version;
this.version = version;
getVersionMajor();
getVersionMinor();
support.firePropertyChange("version", oldVersion, version);
}