org.deltava.service.navdata
Class DispatchDataService

java.lang.Object
  extended by org.deltava.service.WebService
      extended by org.deltava.service.navdata.DispatchDataService
Direct Known Subclasses:
AirwayService, NavigationAidService, TerminalRouteService, XMLTerminalRouteService

public abstract class DispatchDataService
extends WebService

An abstract class to store a common cache for Dispatch Web Services.

Since:
2.2
Version:
2.2
Author:
Luke

Field Summary
protected static FileSystemCache _dataCache
           
 
Constructor Summary
DispatchDataService()
           
 
Method Summary
protected  void addCacheEntry(Object key, File f)
          Adds a file to the shared file cache.
static void invalidate()
          Clears the file cache.
protected  void sendFile(File f, HttpServletResponse rsp)
          Sends a file to the HTTP output stream, either via mod_xsendfile or through native Java I/O streaming.
 
Methods inherited from class org.deltava.service.WebService
error, error, error, execute, getCount, isLogged, isSecure
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_dataCache

protected static final FileSystemCache _dataCache
Constructor Detail

DispatchDataService

public DispatchDataService()
Method Detail

addCacheEntry

protected void addCacheEntry(Object key,
                             File f)
Adds a file to the shared file cache.

Parameters:
key - the cache key
f - the file

invalidate

public static void invalidate()
Clears the file cache.

See Also:
FileCache.clear()

sendFile

protected void sendFile(File f,
                        HttpServletResponse rsp)
Sends a file to the HTTP output stream, either via mod_xsendfile or through native Java I/O streaming.

Parameters:
f - the file to send
rsp - the HTTP Servlet response


Copyright © 2004-2009 Global Virtual Airlines Group. All Rights Reserved.