/** * 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(); } }
@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); }
@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); }
/** * 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(); } }
/** * 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); }
/** * 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); }
/** * 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(); } }
/** * 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); }
/** * 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); }
@Override public void doFilterEvent(CometEvent ce, CometFilterChain cfc) throws IOException, ServletException { }