be.unamur.inference.web.apache
Class UserRequesRRKeyGenerator

java.lang.Object
  extended by be.unamur.inference.web.apache.UserRequesRRKeyGenerator
All Implemented Interfaces:
ObjectKeyGenerator<ApacheUserRequest>

public class UserRequesRRKeyGenerator
extends Object
implements ObjectKeyGenerator<ApacheUserRequest>

Request Resource key generator. Generates a key equal to the type of request (HEAD, GET, POST) and the resource name.

Author:
Xavier Devroey

Method Summary
 String generateKey(ApacheUserRequest request)
          Generates a unique key for the given T object.
static UserRequesRRKeyGenerator getInstance()
          Returns the singleton instance of this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static UserRequesRRKeyGenerator getInstance()
Returns the singleton instance of this class.


generateKey

public String generateKey(ApacheUserRequest request)
Description copied from interface: ObjectKeyGenerator
Generates a unique key for the given T object.

Specified by:
generateKey in interface ObjectKeyGenerator<ApacheUserRequest>
Parameters:
request - The T object to identify.
Returns:
A unique String for the given object.


Copyright © 2014 PReCISE, University of Namur. All rights reserved.