Java 类org.apache.catalina.comet.CometFilterChain 实例源码

项目:tomcat7    文件:RequestFilter.java   
/**
 * Perform the filtering that has been configured for this Filter, matching
 * against the specified request property.
 * 
 * @param property  The property to check against the allow/deny rules
 * @param event     The comet event to be filtered
 * @param chain     The comet filter chain
 * @exception IOException if an input/output error occurs
 * @exception ServletException if a servlet error occurs
 */
protected void processCometEvent(String property, CometEvent event,
        CometFilterChain chain) throws IOException, ServletException {
    HttpServletResponse response = event.getHttpServletResponse();

    if (isAllowed(property)) {
        chain.doFilterEvent(event);
    } else {
        response.sendError(denyStatus);
        event.close();
    }
}
项目:tomcat7    文件:FailedRequestFilter.java   
@Override
public void doFilterEvent(CometEvent event, CometFilterChain chain)
        throws IOException, ServletException {
    if (event.getEventType() == CometEvent.EventType.BEGIN
            && !isGoodRequest(event.getHttpServletRequest())) {
        event.getHttpServletResponse().sendError(
                HttpServletResponse.SC_BAD_REQUEST);
        event.close();
        return;
    }
    chain.doFilterEvent(event);
}
项目:apache-tomcat-7.0.73-with-comment    文件:RequestFilter.java   
/**
 * Perform the filtering that has been configured for this Filter, matching
 * against the specified request property.
 * 
 * @param property  The property to check against the allow/deny rules
 * @param event     The comet event to be filtered
 * @param chain     The comet filter chain
 * @exception IOException if an input/output error occurs
 * @exception ServletException if a servlet error occurs
 */
protected void processCometEvent(String property, CometEvent event,
        CometFilterChain chain) throws IOException, ServletException {
    HttpServletResponse response = event.getHttpServletResponse();

    if (isAllowed(property)) {
        chain.doFilterEvent(event);
    } else {
        response.sendError(denyStatus);
        event.close();
    }
}
项目:apache-tomcat-7.0.73-with-comment    文件:FailedRequestFilter.java   
@Override
public void doFilterEvent(CometEvent event, CometFilterChain chain)
        throws IOException, ServletException {
    if (event.getEventType() == CometEvent.EventType.BEGIN
            && !isGoodRequest(event.getHttpServletRequest())) {
        event.getHttpServletResponse().sendError(
                HttpServletResponse.SC_BAD_REQUEST);
        event.close();
        return;
    }
    chain.doFilterEvent(event);
}
项目:lazycat    文件:FailedRequestFilter.java   
@Override
public void doFilterEvent(CometEvent event, CometFilterChain chain) throws IOException, ServletException {
    if (event.getEventType() == CometEvent.EventType.BEGIN && !isGoodRequest(event.getHttpServletRequest())) {
        event.getHttpServletResponse().sendError(HttpServletResponse.SC_BAD_REQUEST);
        event.close();
        return;
    }
    chain.doFilterEvent(event);
}
项目:class-guard    文件:RequestFilter.java   
/**
 * Perform the filtering that has been configured for this Filter, matching
 * against the specified request property.
 * 
 * @param property  The property to check against the allow/deny rules
 * @param event     The comet event to be filtered
 * @param chain     The comet filter chain
 * @exception IOException if an input/output error occurs
 * @exception ServletException if a servlet error occurs
 */
protected void processCometEvent(String property, CometEvent event,
        CometFilterChain chain) throws IOException, ServletException {
    HttpServletResponse response = event.getHttpServletResponse();

    if (isAllowed(property)) {
        chain.doFilterEvent(event);
    } else {
        response.sendError(denyStatus);
        event.close();
    }
}
项目:class-guard    文件:FailedRequestFilter.java   
@Override
public void doFilterEvent(CometEvent event, CometFilterChain chain)
        throws IOException, ServletException {
    if (event.getEventType() == CometEvent.EventType.BEGIN
            && !isGoodRequest(event.getHttpServletRequest())) {
        event.getHttpServletResponse().sendError(
                HttpServletResponse.SC_BAD_REQUEST);
        event.close();
        return;
    }
    chain.doFilterEvent(event);
}
项目:apache-tomcat-7.0.57    文件:RequestFilter.java   
/**
 * Perform the filtering that has been configured for this Filter, matching
 * against the specified request property.
 * 
 * @param property  The property to check against the allow/deny rules
 * @param event     The comet event to be filtered
 * @param chain     The comet filter chain
 * @exception IOException if an input/output error occurs
 * @exception ServletException if a servlet error occurs
 */
protected void processCometEvent(String property, CometEvent event,
        CometFilterChain chain) throws IOException, ServletException {
    HttpServletResponse response = event.getHttpServletResponse();

    if (isAllowed(property)) {
        chain.doFilterEvent(event);
    } else {
        response.sendError(denyStatus);
        event.close();
    }
}
项目:apache-tomcat-7.0.57    文件:FailedRequestFilter.java   
@Override
public void doFilterEvent(CometEvent event, CometFilterChain chain)
        throws IOException, ServletException {
    if (event.getEventType() == CometEvent.EventType.BEGIN
            && !isGoodRequest(event.getHttpServletRequest())) {
        event.getHttpServletResponse().sendError(
                HttpServletResponse.SC_BAD_REQUEST);
        event.close();
        return;
    }
    chain.doFilterEvent(event);
}
项目:apache-tomcat-7.0.57    文件:RequestFilter.java   
/**
 * Perform the filtering that has been configured for this Filter, matching
 * against the specified request property.
 * 
 * @param property  The property to check against the allow/deny rules
 * @param event     The comet event to be filtered
 * @param chain     The comet filter chain
 * @exception IOException if an input/output error occurs
 * @exception ServletException if a servlet error occurs
 */
protected void processCometEvent(String property, CometEvent event,
        CometFilterChain chain) throws IOException, ServletException {
    HttpServletResponse response = event.getHttpServletResponse();

    if (isAllowed(property)) {
        chain.doFilterEvent(event);
    } else {
        response.sendError(denyStatus);
        event.close();
    }
}
项目:apache-tomcat-7.0.57    文件:FailedRequestFilter.java   
@Override
public void doFilterEvent(CometEvent event, CometFilterChain chain)
        throws IOException, ServletException {
    if (event.getEventType() == CometEvent.EventType.BEGIN
            && !isGoodRequest(event.getHttpServletRequest())) {
        event.getHttpServletResponse().sendError(
                HttpServletResponse.SC_BAD_REQUEST);
        event.close();
        return;
    }
    chain.doFilterEvent(event);
}
项目:WBSAirback    文件:RequestFilter.java   
/**
 * Perform the filtering that has been configured for this Filter, matching
 * against the specified request property.
 * 
 * @param property  The property to check against the allow/deny rules
 * @param event     The comet event to be filtered
 * @param chain     The comet filter chain
 * @exception IOException if an input/output error occurs
 * @exception ServletException if a servlet error occurs
 */
protected void processCometEvent(String property, CometEvent event,
        CometFilterChain chain) throws IOException, ServletException {
    HttpServletResponse response = event.getHttpServletResponse();

    if (isAllowed(property)) {
        chain.doFilterEvent(event);
    } else {
        response.sendError(HttpServletResponse.SC_FORBIDDEN);
        event.close();
    }
}
项目:tomcat7    文件:RemoteHostFilter.java   
/**
 * Extract the desired request property, and pass it (along with the comet
 * event and filter chain) to the protected <code>process()</code> method
 * to perform the actual filtering.
 *
 * @param event The comet event to be processed
 * @param chain The filter chain for this event
 *
 * @exception IOException if an input/output error occurs
 * @exception ServletException if a servlet error occurs
 */
@Override
public void doFilterEvent(CometEvent event, CometFilterChain chain)
        throws IOException, ServletException {
    processCometEvent(event.getHttpServletRequest().getRemoteHost(),
            event, chain);
}
项目:tomcat7    文件:RemoteAddrFilter.java   
/**
 * Extract the desired request property, and pass it (along with the comet
 * event and filter chain) to the protected <code>process()</code> method
 * to perform the actual filtering.
 *
 * @param event The comet event to be processed
 * @param chain The filter chain for this event
 *
 * @exception IOException if an input/output error occurs
 * @exception ServletException if a servlet error occurs
 */
@Override
public void doFilterEvent(CometEvent event, CometFilterChain chain)
        throws IOException, ServletException {
    processCometEvent(event.getHttpServletRequest().getRemoteAddr(),
            event, chain);        
}
项目:apache-tomcat-7.0.73-with-comment    文件:RemoteHostFilter.java   
/**
 * Extract the desired request property, and pass it (along with the comet
 * event and filter chain) to the protected <code>process()</code> method
 * to perform the actual filtering.
 *
 * @param event The comet event to be processed
 * @param chain The filter chain for this event
 *
 * @exception IOException if an input/output error occurs
 * @exception ServletException if a servlet error occurs
 */
@Override
public void doFilterEvent(CometEvent event, CometFilterChain chain)
        throws IOException, ServletException {
    processCometEvent(event.getHttpServletRequest().getRemoteHost(),
            event, chain);
}
项目:apache-tomcat-7.0.73-with-comment    文件:RemoteAddrFilter.java   
/**
 * Extract the desired request property, and pass it (along with the comet
 * event and filter chain) to the protected <code>process()</code> method
 * to perform the actual filtering.
 *
 * @param event The comet event to be processed
 * @param chain The filter chain for this event
 *
 * @exception IOException if an input/output error occurs
 * @exception ServletException if a servlet error occurs
 */
@Override
public void doFilterEvent(CometEvent event, CometFilterChain chain)
        throws IOException, ServletException {
    processCometEvent(event.getHttpServletRequest().getRemoteAddr(),
            event, chain);        
}
项目:lazycat    文件:RequestFilter.java   
/**
 * Perform the filtering that has been configured for this Filter, matching
 * against the specified request property.
 * 
 * @param property
 *            The property to check against the allow/deny rules
 * @param event
 *            The comet event to be filtered
 * @param chain
 *            The comet filter chain
 * @exception IOException
 *                if an input/output error occurs
 * @exception ServletException
 *                if a servlet error occurs
 */
protected void processCometEvent(String property, CometEvent event, CometFilterChain chain)
        throws IOException, ServletException {
    HttpServletResponse response = event.getHttpServletResponse();

    if (isAllowed(property)) {
        chain.doFilterEvent(event);
    } else {
        response.sendError(denyStatus);
        event.close();
    }
}
项目:class-guard    文件:RemoteHostFilter.java   
/**
 * Extract the desired request property, and pass it (along with the comet
 * event and filter chain) to the protected <code>process()</code> method
 * to perform the actual filtering.
 *
 * @param event The comet event to be processed
 * @param chain The filter chain for this event
 *
 * @exception IOException if an input/output error occurs
 * @exception ServletException if a servlet error occurs
 */
@Override
public void doFilterEvent(CometEvent event, CometFilterChain chain)
        throws IOException, ServletException {
    processCometEvent(event.getHttpServletRequest().getRemoteHost(),
            event, chain);
}
项目:class-guard    文件:RemoteAddrFilter.java   
/**
 * Extract the desired request property, and pass it (along with the comet
 * event and filter chain) to the protected <code>process()</code> method
 * to perform the actual filtering.
 *
 * @param event The comet event to be processed
 * @param chain The filter chain for this event
 *
 * @exception IOException if an input/output error occurs
 * @exception ServletException if a servlet error occurs
 */
@Override
public void doFilterEvent(CometEvent event, CometFilterChain chain)
        throws IOException, ServletException {
    processCometEvent(event.getHttpServletRequest().getRemoteAddr(),
            event, chain);        
}
项目:apache-tomcat-7.0.57    文件:RemoteHostFilter.java   
/**
 * Extract the desired request property, and pass it (along with the comet
 * event and filter chain) to the protected <code>process()</code> method
 * to perform the actual filtering.
 *
 * @param event The comet event to be processed
 * @param chain The filter chain for this event
 *
 * @exception IOException if an input/output error occurs
 * @exception ServletException if a servlet error occurs
 */
@Override
public void doFilterEvent(CometEvent event, CometFilterChain chain)
        throws IOException, ServletException {
    processCometEvent(event.getHttpServletRequest().getRemoteHost(),
            event, chain);
}
项目:apache-tomcat-7.0.57    文件:RemoteAddrFilter.java   
/**
 * Extract the desired request property, and pass it (along with the comet
 * event and filter chain) to the protected <code>process()</code> method
 * to perform the actual filtering.
 *
 * @param event The comet event to be processed
 * @param chain The filter chain for this event
 *
 * @exception IOException if an input/output error occurs
 * @exception ServletException if a servlet error occurs
 */
@Override
public void doFilterEvent(CometEvent event, CometFilterChain chain)
        throws IOException, ServletException {
    processCometEvent(event.getHttpServletRequest().getRemoteAddr(),
            event, chain);        
}
项目:apache-tomcat-7.0.57    文件:RemoteHostFilter.java   
/**
 * Extract the desired request property, and pass it (along with the comet
 * event and filter chain) to the protected <code>process()</code> method
 * to perform the actual filtering.
 *
 * @param event The comet event to be processed
 * @param chain The filter chain for this event
 *
 * @exception IOException if an input/output error occurs
 * @exception ServletException if a servlet error occurs
 */
@Override
public void doFilterEvent(CometEvent event, CometFilterChain chain)
        throws IOException, ServletException {
    processCometEvent(event.getHttpServletRequest().getRemoteHost(),
            event, chain);
}
项目:apache-tomcat-7.0.57    文件:RemoteAddrFilter.java   
/**
 * Extract the desired request property, and pass it (along with the comet
 * event and filter chain) to the protected <code>process()</code> method
 * to perform the actual filtering.
 *
 * @param event The comet event to be processed
 * @param chain The filter chain for this event
 *
 * @exception IOException if an input/output error occurs
 * @exception ServletException if a servlet error occurs
 */
@Override
public void doFilterEvent(CometEvent event, CometFilterChain chain)
        throws IOException, ServletException {
    processCometEvent(event.getHttpServletRequest().getRemoteAddr(),
            event, chain);        
}
项目:WBSAirback    文件:RemoteHostFilter.java   
/**
 * Extract the desired request property, and pass it (along with the comet
 * event and filter chain) to the protected <code>process()</code> method
 * to perform the actual filtering.
 *
 * @param event The comet event to be processed
 * @param chain The filter chain for this event
 *
 * @exception IOException if an input/output error occurs
 * @exception ServletException if a servlet error occurs
 */
@Override
public void doFilterEvent(CometEvent event, CometFilterChain chain)
        throws IOException, ServletException {
    processCometEvent(event.getHttpServletRequest().getRemoteHost(),
            event, chain);        
}
项目:WBSAirback    文件:RemoteAddrFilter.java   
/**
 * Extract the desired request property, and pass it (along with the comet
 * event and filter chain) to the protected <code>process()</code> method
 * to perform the actual filtering.
 *
 * @param event The comet event to be processed
 * @param chain The filter chain for this event
 *
 * @exception IOException if an input/output error occurs
 * @exception ServletException if a servlet error occurs
 */
@Override
public void doFilterEvent(CometEvent event, CometFilterChain chain)
        throws IOException, ServletException {
    processCometEvent(event.getHttpServletRequest().getRemoteHost(),
            event, chain);        
}
项目:lazycat    文件:RemoteHostFilter.java   
/**
 * Extract the desired request property, and pass it (along with the comet
 * event and filter chain) to the protected <code>process()</code> method to
 * perform the actual filtering.
 *
 * @param event
 *            The comet event to be processed
 * @param chain
 *            The filter chain for this event
 *
 * @exception IOException
 *                if an input/output error occurs
 * @exception ServletException
 *                if a servlet error occurs
 */
@Override
public void doFilterEvent(CometEvent event, CometFilterChain chain) throws IOException, ServletException {
    processCometEvent(event.getHttpServletRequest().getRemoteHost(), event, chain);
}
项目:lazycat    文件:RemoteAddrFilter.java   
/**
 * Extract the desired request property, and pass it (along with the comet
 * event and filter chain) to the protected <code>process()</code> method to
 * perform the actual filtering.
 *
 * @param event
 *            The comet event to be processed
 * @param chain
 *            The filter chain for this event
 *
 * @exception IOException
 *                if an input/output error occurs
 * @exception ServletException
 *                if a servlet error occurs
 */
@Override
public void doFilterEvent(CometEvent event, CometFilterChain chain) throws IOException, ServletException {
    processCometEvent(event.getHttpServletRequest().getRemoteAddr(), event, chain);
}
项目:excord    文件:AuthFilter.java   
@Override
public void doFilterEvent(CometEvent ce, CometFilterChain cfc) throws IOException, ServletException {

}