Package com.alibaba.citrus.webx

Examples of com.alibaba.citrus.webx.ResourceNotFoundException


        System.setProperty("productionModeFromSystemProperties", "false");
        prepareWebClient(null);

        TestValve.runnerHolder.set(new ValveRunner() {
            public void run(RunData rundata, PipelineContext pipelineContext) throws Exception {
                throw new ResourceNotFoundException("not found!");
            }
        });

        invokeServlet("/app1/test.htm");
View Full Code Here


    @Test
    public void prod_sendError() throws Exception {
        TestValve.runnerHolder.set(new ValveRunner() {
            public void run(RunData rundata, PipelineContext pipelineContext) throws Exception {
                throw new ResourceNotFoundException("not found!");
            }
        });

        invokeServlet("/app2/test.htm");
View Full Code Here

    @Test
    public void valve_not_found_exception() throws Exception {
        TestValve.runnerHolder.set(new ValveRunner() {
            public void run(RunData rundata, PipelineContext pipelineContext) throws Exception {
                throw new ResourceNotFoundException("not found!");
            }
        });

        invokeServlet("/myapps/app1/test.htm");
View Full Code Here

    @Test
    public void valve_not_found_exception() throws Exception {
        TestValve.runnerHolder.set(new ValveRunner() {
            public void run(RunData rundata, PipelineContext pipelineContext) throws Exception {
                throw new ResourceNotFoundException("not found!");
            }
        });

        invokeServlet("/myapps/app1/test.htm");
View Full Code Here

                    return new InternalRequestHandlerContext(request, response, internalBaseURL, internalBaseURL, path,
                                                             mainHandler);
                }

                // 如果未匹配
                throw new ResourceNotFoundException(request.getRequestURI());
            }

            return null;
        }
View Full Code Here

    protected abstract RequestHandler getRequestHandler();

    /** 当请求的资源找不到时,方法被调用。子类可以修改此行为。 */
    @Override
    public void resourceNotFound(String resourceName) throws IOException {
        throw new ResourceNotFoundException("Resource Not Found: " + resourceName);
    }
View Full Code Here

                    return new InternalRequestHandlerContext(request, response, internalBaseURL, internalBaseURL, path,
                                                             mainHandler);
                }

                // 如果未匹配
                throw new ResourceNotFoundException(request.getRequestURI());
            }

            return null;
        }
View Full Code Here

                    return new InternalRequestHandlerContext(request, response, internalBaseURL, internalBaseURL, path,
                                                             mainHandler);
                }

                // 如果未匹配
                throw new ResourceNotFoundException(request.getRequestURI());
            }

            return null;
        }
View Full Code Here

                    return new InternalRequestHandlerContext(request, response, internalBaseURL, internalBaseURL, path,
                            mainHandler);
                }

                // ���δƥ��
                throw new ResourceNotFoundException(request.getRequestURI());
            }

            return null;
        }
View Full Code Here

    /**
     * ���������Դ�Ҳ���ʱ�����������á���������޸Ĵ���Ϊ��
     */
    @Override
    public void resourceNotFound(String resourceName) throws IOException {
        throw new ResourceNotFoundException("Resource Not Found: " + resourceName);
    }
View Full Code Here

TOP

Related Classes of com.alibaba.citrus.webx.ResourceNotFoundException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.