be.unamur.inference.web.apache
Class UserRequesRRNVKeyGenerator

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

public class UserRequesRRNVKeyGenerator
extends Object
implements ObjectKeyGenerator<ApacheUserRequest>

Request Resource Parameter Names and Values key generator. Generates a key equal to the type of request (HEAD, GET, POST), the resource name, the names of the parameters and their values. 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 UserRequesRRNVKeyGenerator 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 UserRequesRRNVKeyGenerator 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.