be.unamur.inference.web.apache
Class UserRequesRRNKeyGenerator

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

public class UserRequesRRNKeyGenerator
extends Object
implements ObjectKeyGenerator<ApacheUserRequest>

Request Resource Parameter Names key generator. Generates a key equal to the type of request (HEAD, GET, POST), the resource name and the names of the parameters. Parameters are sorted by name in the key.

Author:
Xavier Devroey

Method Summary
 String generateKey(ApacheUserRequest request)
          Generates a unique key for the given T object.
static UserRequesRRNKeyGenerator 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 UserRequesRRNKeyGenerator 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.