org.apache.catalina.Wrapper.getAvailable()方法的使用及代码示例

x33g5p2x  于2022-02-02 转载在 其他  
字(4.0k)|赞(0)|评价(0)|浏览(123)

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

Wrapper.getAvailable介绍

[英]Return the available date/time for this servlet, in milliseconds since the epoch. If this date/time is in the future, any request for this servlet will return an SC_SERVICE_UNAVAILABLE error. If it is zero, the servlet is currently available. A value equal to Long.MAX_VALUE is considered to mean that unavailability is permanent.
[中]返回此servlet的可用日期/时间(以毫秒为单位,从纪元开始)。如果这个日期/时间是在将来,对这个servlet的任何请求都将返回一个SC_SERVICE_UNAVAILABLE错误。如果为零,则servlet当前可用。等于Long的值。最大_值被认为意味着不可用是永久性的。

代码示例

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

long available = wrapper.getAvailable();
if ((available > 0L) && (available < Long.MAX_VALUE))
  hresponse.setDateHeader("Retry-After", available);

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

long available = wrapper.getAvailable();
if ((available > 0L) && (available < Long.MAX_VALUE))
  hresponse.setDateHeader("Retry-After", available);

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

sm.getString("applicationDispatcher.isUnavailable", 
    wrapper.getName()));
long available = wrapper.getAvailable();
if ((available > 0L) && (available < Long.MAX_VALUE))
  hresponse.setDateHeader("Retry-After", available);

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

sm.getString("applicationDispatcher.isUnavailable", 
    wrapper.getName()));
long available = wrapper.getAvailable();
if ((available > 0L) && (available < Long.MAX_VALUE))
  hresponse.setDateHeader("Retry-After", available);

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

sm.getString("applicationDispatcher.isUnavailable", 
    wrapper.getName()));
long available = wrapper.getAvailable();
if ((available > 0L) && (available < Long.MAX_VALUE))
  hresponse.setDateHeader("Retry-After", available);

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

sm.getString("applicationDispatcher.isUnavailable",
    wrapper.getName()));
long available = wrapper.getAvailable();
if ((available > 0L) && (available < Long.MAX_VALUE))
  hresponse.setDateHeader("Retry-After", available);

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

sm.getString("applicationDispatcher.isUnavailable", 
    wrapper.getName()));
long available = wrapper.getAvailable();
if ((available > 0L) && (available < Long.MAX_VALUE))
  hresponse.setDateHeader("Retry-After", available);

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

sm.getString("applicationDispatcher.isUnavailable", 
    wrapper.getName()));
long available = wrapper.getAvailable();
if ((available > 0L) && (available < Long.MAX_VALUE))
  hresponse.setDateHeader("Retry-After", available);

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

sm.getString("applicationDispatcher.isUnavailable", 
    wrapper.getName()));
long available = wrapper.getAvailable();
if ((available > 0L) && (available < Long.MAX_VALUE))
  hresponse.setDateHeader("Retry-After", available);

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

sm.getString("applicationDispatcher.isUnavailable", 
    wrapper.getName()));
long available = wrapper.getAvailable();
if ((available > 0L) && (available < Long.MAX_VALUE))
  hresponse.setDateHeader("Retry-After", available);

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

sm.getString("applicationDispatcher.isUnavailable",
    wrapper.getName()));
long available = wrapper.getAvailable();
if ((available > 0L) && (available < Long.MAX_VALUE))
  hresponse.setDateHeader("Retry-After", available);

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

sm.getString("applicationDispatcher.isUnavailable",
    wrapper.getName()));
long available = wrapper.getAvailable();
if ((available > 0L) && (available < Long.MAX_VALUE))
  hresponse.setDateHeader("Retry-After", available);

相关文章