congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
unauthorized.render
Code IndexAdd Tabnine to your IDE (free)

How to use
render
method
in
views.html.defaultpages.unauthorized

Best Java code snippets using views.html.defaultpages.unauthorized.render (Showing top 10 results out of 315)

origin: com.typesafe.play/play_2.10

/**
 * Generates an alternative result if the user is not authenticated; the default a simple '401 Not Authorized' page.
 */
public Result onUnauthorized(Context ctx) {
  return unauthorized(views.html.defaultpages.unauthorized.render());
}

origin: com.typesafe.play/play_2.12

/**
 * Invoked when a client makes a request that was forbidden.
 * <p>
 * Returns Results.forbidden (401) with the included template from {@code views.html.defaultpages.unauthorized} as the content.
 *
 * @param request The forbidden request.
 * @param message The error message.
 * @return a CompletionStage containing the Result.
 */
protected CompletionStage<Result> onForbidden(RequestHeader request, String message) {
  return CompletableFuture.completedFuture(Results.forbidden(views.html.defaultpages.unauthorized.render(request.asScala())));
}
origin: com.typesafe.play/play

/**
 * Invoked when a client makes a request that was forbidden.
 * <p>
 * Returns Results.forbidden (401) with the included template from {@code views.html.defaultpages.unauthorized} as the content.
 *
 * @param request The forbidden request.
 * @param message The error message.
 * @return a CompletionStage containing the Result.
 */
protected CompletionStage<Result> onForbidden(RequestHeader request, String message) {
  return CompletableFuture.completedFuture(Results.forbidden(views.html.defaultpages.unauthorized.render(request.asScala())));
}
origin: com.typesafe.play/play_2.11

/**
 * Invoked when a client makes a request that was forbidden.
 * <p>
 * Returns Results.forbidden (401) with the included template from {@code views.html.defaultpages.unauthorized} as the content.
 *
 * @param request The forbidden request.
 * @param message The error message.
 * @return a CompletionStage containing the Result.
 */
protected CompletionStage<Result> onForbidden(RequestHeader request, String message) {
  return CompletableFuture.completedFuture(Results.forbidden(views.html.defaultpages.unauthorized.render(request.asScala())));
}
origin: com.typesafe.play/play_2.12

/**
 * Generates an alternative result if the user is not authenticated; the default a simple '401 Not Authorized' page.
 *
 * @param req the current request
 * @return a <code>401 Not Authorized</code> result
 */
public Result onUnauthorized(Request req) {
  return unauthorized(views.html.defaultpages.unauthorized.render(req.asScala()));
}
origin: com.typesafe.play/play

/**
 * Generates an alternative result if the user is not authenticated; the default a simple '401 Not Authorized' page.
 *
 * @param req the current request
 * @return a <code>401 Not Authorized</code> result
 */
public Result onUnauthorized(Request req) {
  return unauthorized(views.html.defaultpages.unauthorized.render(req.asScala()));
}
origin: com.typesafe.play/play_2.10

/**
 * Invoked when a client makes a request that was forbidden.
 *
 * @param request The forbidden request.
 * @param message The error message.
 */
protected F.Promise<Result> onForbidden(RequestHeader request, String message) {
  return F.Promise.<Result>pure(Results.forbidden(views.html.defaultpages.unauthorized.render()));
}
origin: com.typesafe.play/play_2.11

/**
 * Generates an alternative result if the user is not authenticated; the default a simple '401 Not Authorized' page.
 *
 * @param req the current request
 * @return a <code>401 Not Authorized</code> result
 */
public Result onUnauthorized(Request req) {
  return unauthorized(views.html.defaultpages.unauthorized.render(req.asScala()));
}
origin: be.objectify/deadbolt-java_2.12

@Override
public CompletionStage<Result> onAuthFailure(final Http.RequestHeader requestHeader,
                       final Optional<String> content)
{
  return CompletableFuture.completedFuture(unauthorized.render(requestHeader.asScala()))
              .thenApply(Results::unauthorized);
}
origin: be.objectify/deadbolt-java_2.11

@Override
public CompletionStage<Result> onAuthFailure(final Http.RequestHeader requestHeader,
                       final Optional<String> content)
{
  return CompletableFuture.completedFuture(unauthorized.render(requestHeader.asScala()))
              .thenApply(Results::unauthorized);
}
views.html.defaultpagesunauthorizedrender

Popular methods of unauthorized

    Popular in Java

    • Making http requests using okhttp
    • startActivity (Activity)
    • putExtra (Intent)
    • getSupportFragmentManager (FragmentActivity)
    • VirtualMachine (com.sun.tools.attach)
      A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
    • Connection (java.sql)
      A connection represents a link from a Java application to a database. All SQL statements and results
    • SQLException (java.sql)
      An exception that indicates a failed JDBC operation. It provides the following information about pro
    • GregorianCalendar (java.util)
      GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
    • Get (org.apache.hadoop.hbase.client)
      Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
    • Scheduler (org.quartz)
      This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
    • 14 Best Plugins for Eclipse
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

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