| java.lang.Object org.xins.server.Engine
destroy | void destroy()(Code) | | Destroys this servlet. A best attempt will be made to release all
resources.
After this method has finished, it will set the state to
disposed. In that state no more requests will be handled.
|
getFileLocation | String getFileLocation(String path)(Code) | | Gets the location of a file or a directory included in the WAR file.
Parameters: path - the relative path in the WAR to locate the file or the directory.the String representation of the URL of the given path or null if the path cannot be found. |
getResourceAsStream | InputStream getResourceAsStream(String path) throws IllegalArgumentException(Code) | | Gets the resource in the WAR file.
Parameters: path - the path for the resource, cannot be null and should start with /.the InputStream to use to read this resource or null ifthe resource cannot be found. throws: IllegalArgumentException - if path == null or if the path doesn't start with /. since: XINS 2.1. |
getServletConfig | ServletConfig getServletConfig()(Code) | | Returns the ServletConfig object which contains the
build-time properties for this servlet. The returned
ServletConfig object is the one that was passed to the
constructor.
the ServletConfig object that was used to initialize thisservlet, never null . |
initAPI | boolean initAPI()(Code) | | Initializes the API using the current runtime settings. This method
should be called whenever the runtime properties changed.
true if the initialization succeeded, otherwisefalse . |
logTransaction | static void logTransaction(FunctionRequest request, FunctionResult result, String ip, long start, long duration) throws NullPointerException(Code) | | Logs the specified transaction.
Parameters: request - the FunctionRequest, should not be null . Parameters: result - the FunctionResult, should not be null . Parameters: ip - the client IP address, should not be null . Parameters: start - the start of the call, a timestamp as milliseconds since the Epoch. Parameters: duration - the duration of the call, in milliseconds. throws: NullPointerException - if request == null || result == null . |
reloadPropertiesIfChanged | void reloadPropertiesIfChanged()(Code) | | Re-initializes the configuration file listener if there is no file
watcher; otherwise interrupts the file watcher.
|
service | void service(HttpServletRequest request, HttpServletResponse response) throws IOException(Code) | | Handles a request to this servlet (wrapper method). If any of the
arguments is null , then the behaviour of this method is
undefined.
Parameters: request - the servlet request, should not be null . Parameters: response - the servlet response, should not be null . throws: IOException - in case of an I/O error. |
|
|