Package com.google.refine
Class RefineServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
edu.mit.simile.butterfly.Butterfly
com.google.refine.RefineServlet
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public class RefineServlet
extends edu.mit.simile.butterfly.Butterfly
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class edu.mit.simile.butterfly.Butterfly
_classLoader, _config, _configurationException, _configured, _context, _contextDir, _created, _homeDir, _moduleProperties, _modulesByInterface, _modulesByName, _mounter, _properties, _scriptWatcher, _timer, _webInfDir, APPENGINE, AUTORELOAD, BASE_URL, CONTEXT_HEADER, contextFactory, DEFAULT_MOUNTPOINT, DEFAULT_ZONE, HOME, HOST_HEADER, MAIN_ZONE, MODULES_IGNORE, MODULES_PATH, NAME, PATH_PROP, ZONE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheClass(Class<?> klass) voiddestroy()getCacheDir(String name) static Class<?>protected StringgetCommandKey(javax.servlet.http.HttpServletRequest request) getConfiguration(String name, String def) edu.mit.simile.butterfly.ButterflyModulegetTempFile(String name) static Stringvoidinit()static voidregisterClassMapping(String from, String to) Add a mapping that determines how old class names can be updated to newer class names.static booleanregisterCommand(edu.mit.simile.butterfly.ButterflyModule module, String commandName, Command commandObject) Register a single command.protected booleanregisterOneCommand(edu.mit.simile.butterfly.ButterflyModule module, String name, Command commandObject) Register a single command.protected booleanregisterOneCommand(String path, Command commandObject) Register a single command.voidservice(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) static voidsetUserAgent(HttpURLConnection httpConnection) Deprecated.extensions relying on HttpURLConnection should rather migrate to a more high-level and mature HTTP client.static voidsetUserAgent(URLConnection urlConnection) Deprecated.extensions relying on HttpURLConnection should rather migrate to a more high-level and mature HTTP client.protected booleanunregisterCommand(String verb) Methods inherited from class edu.mit.simile.butterfly.Butterfly
absolutize, configure, configureModules, createModule, delay, error, findModulesIn, getFullHost, getTrueContextPath, getTrueHost, getTrueRequestURI, init, initializeModule, isGAE, setDependency, setRoutingCookie, setScript, setScriptable, watch, wireModulesMethods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, serviceMethods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, log, log
-
Field Details
-
VERSION
-
REVISION
-
FULL_VERSION
-
FULLNAME
-
-
Constructor Details
-
RefineServlet
public RefineServlet()
-
-
Method Details
-
init
public void init() throws javax.servlet.ServletException- Overrides:
initin classjavax.servlet.GenericServlet- Throws:
javax.servlet.ServletException
-
destroy
public void destroy()- Specified by:
destroyin interfacejavax.servlet.Servlet- Overrides:
destroyin classedu.mit.simile.butterfly.Butterfly
-
service
public void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException - Overrides:
servicein classedu.mit.simile.butterfly.Butterfly- Throws:
javax.servlet.ServletExceptionIOException
-
getModule
-
getCommandKey
-
getTempDir
-
getTempFile
-
getCacheDir
-
getConfiguration
-
registerOneCommand
protected boolean registerOneCommand(edu.mit.simile.butterfly.ButterflyModule module, String name, Command commandObject) Register a single command.- Parameters:
module- the module the command belongs toname- command verb for commandcommandObject- object implementing the command- Returns:
- true if command was loaded and registered successfully
-
registerOneCommand
Register a single command.- Parameters:
path- path for commandcommandObject- object implementing the command- Returns:
- true if command was loaded and registered successfully
-
unregisterCommand
-
registerCommand
public static boolean registerCommand(edu.mit.simile.butterfly.ButterflyModule module, String commandName, Command commandObject) Register a single command. Used by extensions.- Parameters:
module- the module the command belongs toname- command verb for commandcommandObject- object implementing the command- Returns:
- true if command was loaded and registered successfully
-
registerClassMapping
Add a mapping that determines how old class names can be updated to newer class names. Such updates are desirable as the Java code changes from version to version. If the "from" argument ends with *, then it's considered a prefix; otherwise, it's an exact string match.- Parameters:
from-to-
-
cacheClass
-
getClass
- Throws:
ClassNotFoundException
-
setUserAgent
Deprecated.extensions relying on HttpURLConnection should rather migrate to a more high-level and mature HTTP client. Use {@link RefineServlet.getUserAgent()} instead. -
setUserAgent
Deprecated.extensions relying on HttpURLConnection should rather migrate to a more high-level and mature HTTP client. Use {@link RefineServlet.getUserAgent()} instead. -
getUserAgent
-