org.glassfish.grizzly.http.server.filecache
Class FileCacheKey

java.lang.Object
  extended by org.glassfish.grizzly.http.server.filecache.FileCacheKey
All Implemented Interfaces:
Cacheable
Direct Known Subclasses:
LazyFileCacheKey

public class FileCacheKey
extends Object
implements Cacheable

The entry key in the file cache map.

Author:
Alexey Stashok

Field Summary
protected  String host
           
protected  String uri
           
 
Constructor Summary
protected FileCacheKey()
           
protected FileCacheKey(String host, String uri)
           
 
Method Summary
static FileCacheKey create(String host, String uri)
           
 boolean equals(Object obj)
           
protected  String getHost()
           
protected  String getUri()
           
 int hashCode()
           
 void recycle()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

host

protected String host

uri

protected String uri
Constructor Detail

FileCacheKey

protected FileCacheKey()

FileCacheKey

protected FileCacheKey(String host,
                       String uri)
Method Detail

recycle

public void recycle()
Specified by:
recycle in interface Cacheable

create

public static FileCacheKey create(String host,
                                  String uri)

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getHost

protected String getHost()

getUri

protected String getUri()


Copyright © 2012 Oracle Corporation. All Rights Reserved.