Package org.basex.http
Class HTTPContext
java.lang.Object
org.basex.http.HTTPContext
Global HTTP context information.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the database context.context()Returns the database context.Returns an exception that was caught during the initialization of the database server.static HTTPContextget()Returns the singleton instance.init(javax.servlet.ServletContext sc) Initializes the HTTP context, based on the initial servlet context.voidinit(StaticOptions sopts) Initializes the HTTP context with static options.
-
Method Details
-
get
Returns the singleton instance.- Returns:
- instance
-
context
Returns the database context. Creates a new instance if not done so before.- Returns:
- database context
-
init
Initializes the HTTP context with static options.- Parameters:
sopts- static options
-
init
Initializes the HTTP context, based on the initial servlet context. Parses all context parameters and passes them on to the database context.- Parameters:
sc- servlet context- Returns:
- database context
- Throws:
IOException- I/O exception
-
exception
Returns an exception that was caught during the initialization of the database server.- Returns:
- exception (can be
null)
-
close
public void close()Closes the database context.
-