rewrite-impl-servlet 1.0.2.Final

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 java.lang.Object
implements ChecksumStrategy

Checksum strategy based on Java String hashCode() equality

Author:
Lincoln Baxter, III

Constructor Summary
HashCodeChecksumStrategy()
           
 
Method Summary
 boolean checksumValid(java.lang.String token)
          Return true if the given token contains a valid checksum.
 java.lang.String embedChecksum(java.lang.String token)
          Return the given token with an additional added checksum.
 java.lang.String removeChecksum(java.lang.String token)
          Extract the token from the given string with checksum.
 
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(java.lang.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 java.lang.String embedChecksum(java.lang.String token)
Description copied from interface: ChecksumStrategy
Return the given token with an additional added checksum.

Specified by:
embedChecksum in interface ChecksumStrategy

removeChecksum

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

Specified by:
removeChecksum in interface ChecksumStrategy

rewrite-impl-servlet 1.0.2.Final

Copyright © 2012 OCPsoft. All Rights Reserved.