fr.cnes.sitools.security.filter
Interface RequestCounter

All Known Implementing Classes:
RequestCounterHashSet

public interface RequestCounter

Interface to count requests.

Author:
m.gond

Method Summary
 void addRequest(java.lang.String id)
          Adds the request.
 int getNumberOfRequests(java.lang.String id)
          Gets the number of requests for a specific identifier
 void initNumberOfRequest(java.lang.String id, int nbRequests)
          Inits the number of request.
 void remove(java.lang.String id)
          Removes the.
 

Method Detail

getNumberOfRequests

int getNumberOfRequests(java.lang.String id)
Gets the number of requests for a specific identifier

Parameters:
id - the id
Returns:
the number of requests

addRequest

void addRequest(java.lang.String id)
Adds the request.

Parameters:
id - the id

remove

void remove(java.lang.String id)
Removes the.

Parameters:
id - the id

initNumberOfRequest

void initNumberOfRequest(java.lang.String id,
                         int nbRequests)
Inits the number of request.

Parameters:
id - the id
nbRequests - the nb requests


Copyright © 2010-2013 CNES. All Rights Reserved.