Package org.restsql.core

Examples of org.restsql.core.RequestLogger.log()


    // Authorize
    if (!SecurityFactory.getAuthorizer().isAuthorized(new SecurityContextAdapter(securityContext),
        requestType, resName)) {
      Status status = Status.FORBIDDEN;
      requestLogger.log(status.getStatusCode());
      return Response.status(status).build();
    }

    try {
      String responseBody = null;
View Full Code Here


        }
        responseBody = Factory.getResponseSerializer(responseMediaType).serializeWrite(sqlResource, writeResponse);
      }

      // Log response and send it
      requestLogger.log(responseBody);

      // Get cache control

      String cacheControl = Config.properties.getProperty(Config.KEY_HTTP_CACHE_CONTROL,
          Config.DEFAULT_HTTP_CACHE_CONTROL);
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.