Package play.mvc.Http

Examples of play.mvc.Http.Request.uri()


      throws AuthException {

    final Request request = context.request();

    if (Logger.isDebugEnabled()) {
      Logger.debug("Returned with URL: '" + request.uri() + "'");
    }

    final String error = request.getQueryString(getErrorParameterKey());

    if (error != null) {
View Full Code Here


    @Override
  public Object authenticate(final Context context, final Object payload)
      throws AuthException {

    final Request request = context.request();
    final String uri = request.uri();

    if (Logger.isDebugEnabled()) {
      Logger.debug("Returned with URL: '" + uri + "'");
    }
View Full Code Here

      throws AuthException {

    final Request request = context.request();

    if (Logger.isDebugEnabled()) {
      Logger.debug("Returned with URL: '" + request.uri() + "'");
    }

    final boolean hasOpenID = payload != null
        && !payload.toString().trim().isEmpty();
View Full Code Here

          Cached cachAnno = actionMethod.getAnnotation(Cached.class);
          // Check the cache (only for GET or HEAD)
          if ((method.equals("GET") || method.equals("HEAD")) && cachAnno != null) {
            key = cachAnno.key();
            if ("".equals(key) || key == null) {
              key = "urlcache:" + req.uri() + ":" + req.queryString();
            }
            duration = cachAnno.duration();
            result = (SimpleResult) Cache.get(key);
          }
          if (result == null) {
View Full Code Here

    if (property != null && property.length() > 0) {
      if (!"false".equals(property) && !"no".equals(property)) {
        if ("yes".equals(property) || "true".equals(property)) {
          JapidFlags.log("action ->: " + actionMethod.toString());
        } else {
          if (request.uri().matches(property)) {
            JapidFlags.log("action ->: " + actionMethod.toString());
          }
        }
      }
    }
View Full Code Here

   *
   * @return
   */
  public static String genCacheKey() {
    Request request = Implicit.request();
    return "japidcache:" + request.uri(); // play2 is this unique enough?
  }
 
 
}
View Full Code Here

 
  private ALogger accessLogger = Logger.of("access");
 
  public F.Promise<Result> call(Http.Context ctx) throws Throwable {
    final Request request = ctx.request();
    accessLogger.info("method=" + request.method() + " uri=" + request.uri() + " remote-address=" + request.remoteAddress());
   
    return delegate.call(ctx);
  }
}
//#logging-pattern-mix
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.