Tabnine Logo
LoginConfig.getErrorPage
Code IndexAdd Tabnine to your IDE (free)

How to use
getErrorPage
method
in
org.apache.tomcat.util.descriptor.web.LoginConfig

Best Java code snippets using org.apache.tomcat.util.descriptor.web.LoginConfig.getErrorPage (Showing top 18 results out of 315)

origin: org.keycloak/spring-boot-container-bundle

@Override
protected boolean forwardToErrorPageInternal(Request request, HttpServletResponse response, Object loginConfig) throws IOException {
  if (loginConfig == null) return false;
  LoginConfig config = (LoginConfig)loginConfig;
  if (config.getErrorPage() == null) return false;
  // had to do this to get around compiler/IDE issues :(
  try {
    Method method = null;
    /*
    for (Method m : getClass().getDeclaredMethods()) {
      if (m.getName().equals("forwardToErrorPage")) {
        method = m;
        break;
      }
    }
    */
    method = FormAuthenticator.class.getDeclaredMethod("forwardToErrorPage", Request.class, HttpServletResponse.class, LoginConfig.class);
    method.setAccessible(true);
    method.invoke(this, request, response, config);
  } catch (Exception e) {
    throw new RuntimeException(e);
  }
  return true;
}
origin: org.keycloak/keycloak-saml-tomcat8-adapter

@Override
protected boolean forwardToErrorPageInternal(Request request, HttpServletResponse response, Object loginConfig) throws IOException {
  if (loginConfig == null) return false;
  LoginConfig config = (LoginConfig)loginConfig;
  if (config.getErrorPage() == null) return false;
  // had to do this to get around compiler/IDE issues :(
  try {
    Method method = null;
    /*
    for (Method m : getClass().getDeclaredMethods()) {
      if (m.getName().equals("forwardToErrorPage")) {
        method = m;
        break;
      }
    }
    */
    method = FormAuthenticator.class.getDeclaredMethod("forwardToErrorPage", Request.class, HttpServletResponse.class, LoginConfig.class);
    method.setAccessible(true);
    method.invoke(this, request, response, config);
  } catch (Exception e) {
    throw new RuntimeException(e);
  }
  return true;
}
origin: codefollower/Tomcat-Research

  throws IOException {
String errorPage = config.getErrorPage();
if (errorPage == null || errorPage.length() == 0) {
  String msg = sm.getString("formAuthenticator.noErrorPage",
  (config.getErrorPage());
try {
  if (context.fireRequestInitEvent(request)) {
origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

  throws IOException {
String errorPage = config.getErrorPage();
if (errorPage == null || errorPage.length() == 0) {
  String msg = sm.getString("formAuthenticator.noErrorPage",
    context.getServletContext().getRequestDispatcher(config.getErrorPage());
try {
  if (context.fireRequestInitEvent(request.getRequest())) {
origin: Waffle/waffle

  this.redirectTo(request, response, request.getServletPath());
} else {
  this.redirectTo(request, response, loginConfig.getErrorPage());
origin: org.apache.tomcat/tomcat-catalina

  throws IOException {
String errorPage = config.getErrorPage();
if (errorPage == null || errorPage.length() == 0) {
  String msg = sm.getString("formAuthenticator.noErrorPage",
    context.getServletContext().getRequestDispatcher(config.getErrorPage());
try {
  if (context.fireRequestInitEvent(request.getRequest())) {
origin: com.github.dblock.waffle/waffle-tomcat8

  this.redirectTo(request, response, request.getServletPath());
} else {
  this.redirectTo(request, response, loginConfig.getErrorPage());
origin: com.github.waffle/waffle-tomcat9

  this.redirectTo(request, response, request.getServletPath());
} else {
  this.redirectTo(request, response, loginConfig.getErrorPage());
origin: Waffle/waffle

  this.redirectTo(request, response, request.getServletPath());
} else {
  this.redirectTo(request, response, loginConfig.getErrorPage());
origin: Waffle/waffle

  this.redirectTo(request, response, request.getServletPath());
} else {
  this.redirectTo(request, response, loginConfig.getErrorPage());
origin: com.github.waffle/waffle-tomcat8

  this.redirectTo(request, response, request.getServletPath());
} else {
  this.redirectTo(request, response, loginConfig.getErrorPage());
origin: com.github.waffle/waffle-tomcat85

  this.redirectTo(request, response, request.getServletPath());
} else {
  this.redirectTo(request, response, loginConfig.getErrorPage());
origin: org.apache.tomcat/tomcat-catalina

String errorPage = config.getErrorPage();
if ((errorPage != null) && !errorPage.startsWith("/")) {
  if (isServlet22()) {
origin: codefollower/Tomcat-Research

String errorPage = config.getErrorPage();
if ((errorPage != null) && !errorPage.startsWith("/")) {
  if (isServlet22()) {
origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

String errorPage = config.getErrorPage();
if ((errorPage != null) && !errorPage.startsWith("/")) {
  if (isServlet22()) {
origin: codefollower/Tomcat-Research

appendElement(sb,INDENT4, "realm-name",
    loginConfig.getRealmName());
if (loginConfig.getErrorPage() != null ||
      loginConfig.getLoginPage() != null) {
  sb.append("    <form-login-config>\n");
      loginConfig.getLoginPage());
  appendElement(sb, INDENT6, "form-error-page",
      loginConfig.getErrorPage());
  sb.append("    </form-login-config>\n");
origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

appendElement(sb,INDENT4, "realm-name",
    loginConfig.getRealmName());
if (loginConfig.getErrorPage() != null ||
      loginConfig.getLoginPage() != null) {
  sb.append("    <form-login-config>\n");
      loginConfig.getLoginPage());
  appendElement(sb, INDENT6, "form-error-page",
      loginConfig.getErrorPage());
  sb.append("    </form-login-config>\n");
origin: org.apache.tomcat/tomcat-util-scan

appendElement(sb,INDENT4, "realm-name",
    loginConfig.getRealmName());
if (loginConfig.getErrorPage() != null ||
      loginConfig.getLoginPage() != null) {
  sb.append("    <form-login-config>\n");
      loginConfig.getLoginPage());
  appendElement(sb, INDENT6, "form-error-page",
      loginConfig.getErrorPage());
  sb.append("    </form-login-config>\n");
org.apache.tomcat.util.descriptor.webLoginConfiggetErrorPage

Popular methods of LoginConfig

  • getLoginPage
  • setAuthMethod
  • <init>
    Construct a new LoginConfig with the specified properties.
  • getAuthMethod
  • setErrorPage
  • setLoginPage
  • setRealmName
  • getRealmName
  • equals

Popular in Java

  • Reading from database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getExternalFilesDir (Context)
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • JButton (javax.swing)
  • Runner (org.openjdk.jmh.runner)
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now