Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Cleanup round - 6 #22553

Merged
merged 16 commits into from
Jul 27, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Removed sources from valveTomcatStyle test
  • Loading branch information
jayasheelankumar committed Jul 19, 2018
commit 8847877189e969fdf2b202c66c7e234d77bf8a55
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package valves;

import java.io.IOException;
import javax.servlet.ServletException;
import org.apache.catalina.Request;
import org.apache.catalina.Response;
import org.glassfish.web.valve.GlassFishValve;

public class GlassFishValveImpl implements GlassFishValve {

public String getInfo() {
return getClass().getName();
}

public int invoke(Request request, Response response)
throws IOException, ServletException {
((org.apache.catalina.connector.Request) request).setAttribute(
"ATTR_3", "VALUE_3");
return INVOKE_NEXT;
}

public void postInvoke(Request request, Response response)
throws IOException, ServletException {
// Deliberate no-op
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package valves;

import java.io.*;
import javax.servlet.*;
import org.apache.catalina.connector.*;
import org.apache.catalina.valves.*;

public class TomcatValveBase_1 extends ValveBase {

public String getInfo() {
return getClass().getName();
}

public void invoke(Request request, Response response)
throws IOException, ServletException {
request.setAttribute("ATTR_1", "VALUE_1");
getNext().invoke(request, response);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package valves;

import java.io.*;
import javax.servlet.*;
import org.apache.catalina.connector.*;
import org.apache.catalina.valves.*;

public class TomcatValveBase_2 extends ValveBase {

public String getInfo() {
return getClass().getName();
}

public void invoke(Request request, Response response)
throws IOException, ServletException {
request.setAttribute("ATTR_2", "VALUE_2");
getNext().invoke(request, response);
}
}