Package org.springframework.boot.context.embedded

Examples of org.springframework.boot.context.embedded.ErrorPage


    assertTrue(this.response.isCommitted());
  }

  @Test
  public void responseIsCommitedWhenRequestIsAsyncAndStatusIs400Plus() throws Exception {
    this.filter.addErrorPages(new ErrorPage("/error"));
    this.request.setAsyncStarted(true);
    this.chain = new MockFilterChain() {
      @Override
      public void doFilter(ServletRequest request, ServletResponse response)
          throws IOException, ServletException {
View Full Code Here


      container.setErrorPages(Collections.<ErrorPage> emptySet());
      // and add the management-specific bits
      container.setPort(this.managementServerProperties.getPort());
      container.setAddress(this.managementServerProperties.getAddress());
      container.setContextPath(this.managementServerProperties.getContextPath());
      container.addErrorPages(new ErrorPage(this.errorPath));
    }
View Full Code Here

    return new BasicErrorController(errorAttributes);
  }

  @Override
  public void customize(ConfigurableEmbeddedServletContainer container) {
    container.addErrorPages(new ErrorPage(this.properties.getServletPrefix()
        + this.errorPath));
  }
View Full Code Here

      throw new RuntimeException("Planned!");
    }

    @Override
    public void customize(ConfigurableEmbeddedServletContainer container) {
      container.addErrorPages(new ErrorPage("/spring/error"));
    }
View Full Code Here

TOP

Related Classes of org.springframework.boot.context.embedded.ErrorPage

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.