View | Details | Raw Unified | Return to bug 59210
Collapse All | Expand All

(-)webapps/examples/WEB-INF/classes/http2/SimpleImagePush.java (-2 / +2 lines)
Lines 24-30 Link Here
24
import javax.servlet.http.HttpServletRequest;
24
import javax.servlet.http.HttpServletRequest;
25
import javax.servlet.http.HttpServletResponse;
25
import javax.servlet.http.HttpServletResponse;
26
26
27
import org.apache.catalina.connector.Request;
27
import org.apache.catalina.connector.RequestFacade;
28
import org.apache.catalina.core.ApplicationPushBuilder;
28
import org.apache.catalina.core.ApplicationPushBuilder;
29
29
30
public class SimpleImagePush extends HttpServlet {
30
public class SimpleImagePush extends HttpServlet {
Lines 35-41 Link Here
35
    protected void doGet(HttpServletRequest req, HttpServletResponse resp)
35
    protected void doGet(HttpServletRequest req, HttpServletResponse resp)
36
            throws ServletException, IOException {
36
            throws ServletException, IOException {
37
37
38
        ApplicationPushBuilder pb = ((Request) req).getPushBuilder().path("servlets/images/code.gif");
38
        ApplicationPushBuilder pb = ((RequestFacade) req).getPushBuilder().path("servlets/images/code.gif");
39
        pb.push();
39
        pb.push();
40
40
41
        resp.setCharacterEncoding("UTF-8");
41
        resp.setCharacterEncoding("UTF-8");

Return to bug 59210