Code/Import cleanups.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
parent
01ce4dbe64
commit
cc469a136d
|
@ -14,14 +14,12 @@
|
|||
package org.eclipse.jetty.rewrite.handler;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.lang.IllegalArgumentException;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import org.eclipse.jetty.http.HttpStatus;
|
||||
import org.eclipse.jetty.server.Response;
|
||||
import org.eclipse.jetty.util.Callback;
|
||||
import org.eclipse.jetty.util.StringUtil;
|
||||
|
||||
/**
|
||||
* Sends a response with the configured status code whenever the value of the configured request header matches a regular expression.
|
||||
|
@ -125,7 +123,6 @@ public class ResponseStatusHeaderRegexRule extends Rule
|
|||
protected boolean handle(Response response, Callback callback)
|
||||
{
|
||||
Response.writeError(this, response, callback, _code, _message);
|
||||
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
|
||||
package org.eclipse.jetty.rewrite.handler;
|
||||
|
||||
import org.eclipse.jetty.http.HttpStatus;
|
||||
import org.eclipse.jetty.http.HttpTester;
|
||||
import org.eclipse.jetty.server.Handler;
|
||||
import org.eclipse.jetty.server.Request;
|
||||
|
|
Loading…
Reference in New Issue