JSPservletPkg
Class BackCheck

java.lang.Object
  |
  +--JSPservletPkg.BackCheck

class BackCheck
extends java.lang.Object

Version 1.0.4. Mapper persistent cache support.

Check if the user came back on routing page, which can mean the target PageBox is not working.

Copyright (c) 2000-2001

 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
 as published by the Free Software Foundation; version 2
 of the License.
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 

Version:
1, 0, 4
Author:
Alexis Grandemange

Inner Class Summary
(package private)  class BackCheck.PBTS
          PageBox and timestamp wrapper.
 
Field Summary
(package private)  JSPhandler handler
          Handle on JSPhandler.
private  java.util.HashMap lastRequestors
          Key: String - requestor URL.
private  MapperIntf mapper
          Embedded mapper.
 
Constructor Summary
(package private) BackCheck(java.lang.String publisher, JSPhandler handler)
          Version 1.0.4.
 
Method Summary
(package private)  boolean check(java.lang.String requestor, java.lang.String PageBoxUrl)
          Checks if a PageBox is up.
(package private)  MapperIntf getMapper()
          Accessor.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

lastRequestors

private java.util.HashMap lastRequestors
Key: String - requestor URL. Value: PBTS - PageBox and timestamp.

mapper

private MapperIntf mapper
Embedded mapper.

handler

JSPhandler handler
Handle on JSPhandler.
Constructor Detail

BackCheck

BackCheck(java.lang.String publisher,
          JSPhandler handler)
Version 1.0.4. Mapper persistent cache support.

Constructor creates Mapper.

Parameters:
publisher - publisher host name.
Method Detail

getMapper

final MapperIntf getMapper()
Accessor.

check

boolean check(java.lang.String requestor,
              java.lang.String PageBoxUrl)
Checks if a PageBox is up.
Parameters:
requestor - user host name.
PageBoxUrl - selected PageBox URL.
Returns:
true: can use it.