rewrite-config-servlet 2.0.0.Beta3

org.ocpsoft.rewrite.servlet.config.encodequery
Class HashCodeChecksumStrategy

java.lang.Object
  extended by org.ocpsoft.rewrite.servlet.config.encodequery.HashCodeChecksumStrategy
All Implemented Interfaces:
ChecksumStrategy

public class HashCodeChecksumStrategy
extends Object
implements ChecksumStrategy

ChecksumStrategy based on Java String.hashCode() equality

Author:
Lincoln Baxter, III

Constructor Summary
HashCodeChecksumStrategy()
           
 
Method Summary
 boolean checksumValid(String token)
          Return true if the given token contains a valid checksum.
 String embedChecksum(String token)
          Return the given token with an additional added checksum.
 String removeChecksum(String token)
          Extract the checksum from the given token.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HashCodeChecksumStrategy

public HashCodeChecksumStrategy()
Method Detail

checksumValid

public boolean checksumValid(String token)
Description copied from interface: ChecksumStrategy
Return true if the given token contains a valid checksum.

Specified by:
checksumValid in interface ChecksumStrategy

embedChecksum

public String embedChecksum(String token)
Description copied from interface: ChecksumStrategy
Return the given token with an additional added checksum.

Specified by:
embedChecksum in interface ChecksumStrategy

removeChecksum

public String removeChecksum(String token)
Description copied from interface: ChecksumStrategy
Extract the checksum from the given token.

Specified by:
removeChecksum in interface ChecksumStrategy

rewrite-config-servlet 2.0.0.Beta3

Copyright © 2013 OCPsoft. All Rights Reserved.