info.aduna.gee.content
Interface ImportContext

All Known Implementing Classes:
ImportEntryServlet

public interface ImportContext

Interface ImportContext: defines the context for an ImportHandler.

See Also:
ImportHandler

Method Summary
 void add(ImportHandler handler, String source, Properties options, Properties attribs, Properties params)
          Use this method in the body of ImportHandler's doImport().
 String getLanguage(ImportHandler handler)
          Get the name of the user's language.
 void setTtl(ImportHandler handler, long ttl)
          Use this method in the body of ImportHandler's doImport().
 

Method Detail

setTtl

void setTtl(ImportHandler handler,
            long ttl)
Use this method in the body of ImportHandler's doImport(). The time-to-live is expressed in seconds.

Parameters:
ttl - the time-to-live of the current results in seconds

add

void add(ImportHandler handler,
         String source,
         Properties options,
         Properties attribs,
         Properties params)
Use this method in the body of ImportHandler's doImport(). Each method call adds a Entry to the result of the Import. The documentation of this function can be found on-line. Search for "offerContent": the arguments of add correspond 1-1 to the arguments of offerContent. Properties have been used instead of comma separated Strings of key=value pairs for obvious reasons.

Parameters:
handler - the calling ImportHandler
source - either
options - either
attribs - either
params - either
See Also:
or null, or null, or null, or null

getLanguage

String getLanguage(ImportHandler handler)
Get the name of the user's language.



Copyright © 1997-2008 Aduna. All Rights Reserved.