- DBSession - Class in dk.brics.jwig.persistence
-
A DBSession serves the same purpose as a
Session
and provides no new members.
- DBSession() - Constructor for class dk.brics.jwig.persistence.DBSession
-
- decode(String) - Static method in class dk.brics.jwig.util.Base64
-
Decodes a byte array from Base64 format.
- decode(char[]) - Static method in class dk.brics.jwig.util.Base64
-
Decodes a byte array from Base64 format.
- decode(String) - Static method in class dk.brics.jwig.util.CryptoHelper
-
- decode(String) - Static method in class dk.brics.jwig.util.QuotedString
-
Decodes the given quoted-string to a string.
- decode(String) - Static method in class dk.brics.jwig.util.URLEncoding
-
URL-decodes the given string (with UTF-8).
- decodeString(String) - Static method in class dk.brics.jwig.util.Base64
-
Decodes a string from Base64 format using the platform's default charset encoding.
- decodeString(String, String) - Static method in class dk.brics.jwig.util.Base64
-
Decodes a string from Base64 format using the given charset encoding.
- DELETE - Annotation Type in dk.brics.jwig
-
Specifies that this method is invoked when a DELETE request is sent from the client.
- delete() - Method in class dk.brics.jwig.FileField
-
Deletes the underlying storage for a file item, including deleting any associated temporary disk file.
- destroy() - Method in class dk.brics.jwig.AbstractHandler
-
Invoked when the current response is invalidated.
- destroy() - Static method in class dk.brics.jwig.persistence.HibernateQuerier
-
Closes the session factory and releases all resources.
- destroy() - Method in class dk.brics.jwig.Session
-
Invoked by the session manager on timeout.
- destroy() - Method in class dk.brics.jwig.WebApp
-
Called on each web app when the website is closed.
- destroy() - Method in class dk.brics.jwig.WebSite
-
Invoked when the JWIG server stops, for cleaning up after web apps.
- destroy() - Method in class dk.brics.jwig.XMLProducer
-
Invoked when the current response is invalidated.
- dk.brics.jwig - package dk.brics.jwig
-
Runtime system.
- dk.brics.jwig.persistence - package dk.brics.jwig.persistence
-
Persistence (based on Hibernate).
- dk.brics.jwig.sitemap - package dk.brics.jwig.sitemap
-
- dk.brics.jwig.util - package dk.brics.jwig.util
-
Utility classes and functions.
- GET - Annotation Type in dk.brics.jwig
-
Specifies that this method is invoked when a GET request is sent from the client.
- get(int) - Static method in class dk.brics.jwig.util.RandomString
-
Returns a random printable string.
- get() - Static method in class dk.brics.jwig.WebApp
-
Returns the WebApp
object for the current thread.
- getBaseType(Persistable) - Method in class dk.brics.jwig.persistence.FailingQuerier
-
- getBaseType(Persistable) - Method in class dk.brics.jwig.persistence.HibernateQuerier
-
- getBaseType(Persistable) - Method in interface dk.brics.jwig.persistence.Querier
-
If the querier implementation uses an instrumented class for representing a persistable type, then the
non-instrumented class of the object must be returned by this method.
- getBytes() - Method in class dk.brics.jwig.FileField
-
Returns the contents of the file item as an array of bytes.
- getCache() - Method in class dk.brics.jwig.WebSite
-
Return a new instance of the cache implementation that is used in this
web site.
- getCacheAugmentationString() - Method in class dk.brics.jwig.WebSite
-
Returns the string used to seperate two entries with the same URL in the
cache.
- getCacheAugmentedString(String) - Method in class dk.brics.jwig.WebContext
-
- getClass(E) - Method in class dk.brics.jwig.persistence.FailingQuerier
-
- getClass(E) - Method in class dk.brics.jwig.persistence.HibernateQuerier
-
- getClass(E) - Method in interface dk.brics.jwig.persistence.Querier
-
Returns the class object of a persistable.
- getConfig() - Static method in class dk.brics.jwig.persistence.HibernateQuerier
-
Gets the current configuration for Hibernate that will be used to build the session factory.
- getContentType() - Method in class dk.brics.jwig.FileField
-
Returns the content type passed by the browser or null if not defined.
- getCookies() - Method in class dk.brics.jwig.WebContext
-
Returns (non-null) array of cookies from the request.
- getCurrentSessionContext() - Static method in class dk.brics.jwig.persistence.JwigCurrentSessionContext
-
Gets the object that is the current session context.
- getErrorCode() - Method in exception dk.brics.jwig.AccessDeniedException
-
- getErrorCode() - Method in exception dk.brics.jwig.AuthorizationRequiredException
-
- getErrorCode() - Method in exception dk.brics.jwig.BadRequestException
-
- getErrorCode() - Method in exception dk.brics.jwig.ConflictException
-
- getErrorCode() - Method in exception dk.brics.jwig.ImATeapotException
-
- getErrorCode() - Method in exception dk.brics.jwig.JavascriptDisabledException
-
- getErrorCode() - Method in exception dk.brics.jwig.JWIGException
-
- getErrorCode() - Method in exception dk.brics.jwig.MissingParameterException
-
- getErrorCode() - Method in exception dk.brics.jwig.NotFoundException
-
- getErrorCode() - Method in exception dk.brics.jwig.ServerBusyException
-
- getErrorCode() - Method in exception dk.brics.jwig.SessionDefunctException
-
- getETag() - Method in class dk.brics.jwig.Response
-
Returns the current ETag of this response.
- getFactory() - Static method in class dk.brics.jwig.persistence.HibernateQuerier
-
Gets the session factory from the querier.
- getField(String) - Method in class dk.brics.jwig.Parameters
-
Returns the FormField
object for the given parameter name.
- getFileName() - Method in class dk.brics.jwig.FileField
-
Returns the original filename in the client's filesystem, as provided by the browser (or other client software).
- getHandler(String) - Method in class dk.brics.jwig.Response
-
Returns a registered handler, or null if not found.
- getHandlerIdentifier() - Method in class dk.brics.jwig.AbstractHandler
-
Returns the URL for running this handler
- getHandlerIdentifier() - Method in class dk.brics.jwig.EventHandler
-
Returns the JavaScript instruction for running this event handler.
- getHandlers() - Method in class dk.brics.jwig.Response
-
Returns the registered handlers.
- getId() - Method in class dk.brics.jwig.persistence.AbstractPersistable
-
- getId() - Method in interface dk.brics.jwig.persistence.Persistable
-
Retrieves the ID for this object.
- getID() - Method in class dk.brics.jwig.Session
-
Returns the ID of this session state object.
- getId() - Method in exception dk.brics.jwig.SessionDefunctException
-
Returns the ID of the defunct session.
- getIdFromProperty(Class<? extends Persistable>, String, String) - Method in class dk.brics.jwig.persistence.FailingQuerier
-
- getIdFromProperty(Class<? extends Persistable>, String, String) - Method in class dk.brics.jwig.persistence.HibernateQuerier
-
- getIdFromProperty(Class<? extends Persistable>, String, String) - Method in interface dk.brics.jwig.persistence.Querier
-
- getInputStream() - Method in class dk.brics.jwig.FileField
-
Returns an InputStream that can be used to retrieve the contents of the file.
- getInstance() - Static method in class dk.brics.jwig.persistence.FailingQuerier
-
Gets the instance of the place holder querier.
- getLastModified() - Method in class dk.brics.jwig.Response
-
Returns the current Last-Modified timestamp of this response.
- getList(String) - Method in class dk.brics.jwig.Parameters
-
Returns list of FormField
objects for the given parameter name.
- getListType(Method, int) - Static method in class dk.brics.jwig.util.ParameterNamer
-
Returns the contents type of a collection class argument.
- getLogInfo() - Method in exception dk.brics.jwig.JWIGException
-
- getMap() - Method in class dk.brics.jwig.Parameters
-
Returns the parameter map.
- getMessagePage() - Method in exception dk.brics.jwig.AuthorizationRequiredException
-
- getMessagePage() - Method in exception dk.brics.jwig.JWIGException
-
Returns the default rendering of this exception type.
- getMessagePage() - Method in exception dk.brics.jwig.ServerBusyException
-
- getMinutes() - Method in class dk.brics.jwig.Session
-
Returns the minutes-to-live (from when last refreshed).
- getName() - Method in class dk.brics.jwig.FileField
-
Returns the original filename in the client's filesystem.
- getObject(Class<E>, Integer) - Method in class dk.brics.jwig.persistence.FailingQuerier
-
- getObject(Class<E>, Integer) - Method in class dk.brics.jwig.persistence.HibernateQuerier
-
- getObject(Class<E>, Integer, boolean) - Method in class dk.brics.jwig.persistence.HibernateQuerier
-
- getObject(Class<E>, Integer) - Method in interface dk.brics.jwig.persistence.Querier
-
Returns the instance of the given class uniquely determined by its ID.
- getObject() - Method in class dk.brics.jwig.Response
-
Returns the payload
- getPageName(String) - Method in class dk.brics.jwig.WebApp
-
Returns the name of the web method with the given annotated name.
- getParameterNames(Method) - Static method in class dk.brics.jwig.util.ParameterNamer
-
Returns the list of parameter names of the given method.
- getPassword() - Method in class dk.brics.jwig.User
-
Gets the password.
- getProducer() - Method in class dk.brics.jwig.EventHandler
-
Creates an XML producer for this event handler.
- getProperties() - Method in class dk.brics.jwig.WebApp
-
Returns the combined web app and web site configuration properties.
- getProperties() - Method in class dk.brics.jwig.WebSite
-
Returns the web site configuration properties.
- getProperty(String) - Method in class dk.brics.jwig.WebApp
-
Returns the web app configuration property value for the given name.
- getProperty(String, T) - Method in class dk.brics.jwig.WebApp
-
Returns the configuration property value for the given name, with a default value.
- getProperty(String) - Method in class dk.brics.jwig.WebSite
-
Returns the web site configuration property value for the given name.
- getProperty(String, T) - Method in class dk.brics.jwig.WebSite
-
Returns the configuration property value for the given name, with a
default value.
- getPropertyFromId(Class<? extends Persistable>, String, Integer) - Method in class dk.brics.jwig.persistence.FailingQuerier
-
- getPropertyFromId(Class<? extends Persistable>, String, Integer) - Method in class dk.brics.jwig.persistence.HibernateQuerier
-
- getPropertyFromId(Class<? extends Persistable>, String, Integer) - Method in interface dk.brics.jwig.persistence.Querier
-
- getQuerier() - Method in class dk.brics.jwig.WebSite
-
Gets the querier that should be used to query object from the database.
- getRealm() - Method in exception dk.brics.jwig.AuthorizationRequiredException
-
Returns the realm string.
- getRequestURL() - Static method in class dk.brics.jwig.WebContext
-
Returns the URL of the current request.
- getResponse() - Static method in class dk.brics.jwig.WebContext
-
Returns the current response object.
- getResult() - Method in class dk.brics.jwig.Response
-
- getSecurityManager() - Method in class dk.brics.jwig.WebApp
-
Returns the security manager for this web app.
- getServletContext() - Static method in class dk.brics.jwig.WebContext
-
Returns the ServletContext
object.
- getServletRequest() - Static method in class dk.brics.jwig.WebContext
-
Returns the HttpServletRequest
object.
- getServletResponse() - Static method in class dk.brics.jwig.WebContext
-
Returns the HttpServletResponse
object.
- getSessions() - Method in class dk.brics.jwig.Response
-
Returns the associated sessions.
- getSize() - Method in class dk.brics.jwig.FileField
-
Returns the size of the file item.
- getStatus() - Method in class dk.brics.jwig.Response
-
Returns the status code.
- getString(String) - Method in class dk.brics.jwig.FileField
-
Returns the contents of the file item as a String, using the specified encoding.
- getString() - Method in class dk.brics.jwig.FileField
-
Returns the contents of the file item as a String, using the system default encoding.
- getText() - Method in class dk.brics.jwig.Response
-
Returns the plain-text payload.
- getTimeout() - Method in class dk.brics.jwig.Session
-
Returns the current timeout for this session state object.
- getUser() - Method in class dk.brics.jwig.WebContext
-
Gets the user for the request, using HTTP Basic authentication.
- getUsername() - Method in class dk.brics.jwig.User
-
Gets the username.
- getValue() - Method in class dk.brics.jwig.FileField
-
Returns the contents of the file item as a String, using the system default encoding.
- getValue() - Method in class dk.brics.jwig.FormField
-
Returns the value of this field.
- getValue(String) - Method in class dk.brics.jwig.Parameters
-
Returns the string value for the given parameter name.
- getValue() - Method in class dk.brics.jwig.TextField
-
Returns the value of this field.
- getWebAppParam(String, Class<E>) - Method in class dk.brics.jwig.WebContext
-
Returns the web app parameter of the given name.
- getWebAppParam(String) - Method in class dk.brics.jwig.WebContext
-
Gets the string representation of the web app parameter with this name
- getWebApps() - Method in class dk.brics.jwig.WebSite
-
Returns the list of web application objects of this web site.
- getWebAppURL(boolean) - Static method in class dk.brics.jwig.WebContext
-
Generates a URL for the root of the current web application.
- getWebSite() - Method in class dk.brics.jwig.WebContext
-
Returns the web site object.
- getWebSiteURL(boolean) - Static method in class dk.brics.jwig.WebContext
-
Generates a URL for the root of the web site.
- getWebSiteURL() - Static method in class dk.brics.jwig.WebContext
-
Generates a URL for the root of this website.
- getXml() - Method in exception dk.brics.jwig.JWIGException
-
The XML to display to the user.
- getXML() - Method in class dk.brics.jwig.Response
-
Returns the XML payload.
- sendEmail(Email) - Method in class dk.brics.jwig.WebContext
-
- sendEmails(List<Email>) - Method in class dk.brics.jwig.WebContext
-
Sends a collection of emails.
- sendEmailsAsynchronously(List<Email>) - Method in class dk.brics.jwig.WebContext
-
- sendError(int, String) - Method in class dk.brics.jwig.WebSite
-
Creates an error message string to be send to the client.
- sendError(int, XML) - Method in class dk.brics.jwig.WebSite
-
- sendError(int, XML, boolean) - Method in class dk.brics.jwig.WebSite
-
Creates an error message string to be send to the client.
- sendResponse() - Static method in class dk.brics.jwig.WebContext
-
Sends the current response.
- SerializableSession - Interface in dk.brics.jwig
-
Marker interface that tells JWIG to serialize the marked session when the server is closed and to restore it again
when the server is up again.
- ServerBusyException - Exception in dk.brics.jwig
-
Exception thrown when the server is overloaded.
- ServerBusyException(String) - Constructor for exception dk.brics.jwig.ServerBusyException
-
Constructs a new exception.
- Session - Class in dk.brics.jwig
-
Session state.
- Session() - Constructor for class dk.brics.jwig.Session
-
Constructs a new session state object for the current response.
- Session(int) - Constructor for class dk.brics.jwig.Session
-
Constructs a new session state object for the current response.
- sessionCreated(Session) - Method in class dk.brics.jwig.persistence.JwigCurrentSessionContext
-
- SessionDefunctException - Exception in dk.brics.jwig
-
Exception thrown when trying to fetch a non-existing session from the session state manager.
- SessionDefunctException(String) - Constructor for exception dk.brics.jwig.SessionDefunctException
-
Constructs a new exception.
- sessionEnded(Session) - Method in class dk.brics.jwig.persistence.JwigCurrentSessionContext
-
- sessionRefreshed(Session) - Method in class dk.brics.jwig.persistence.JwigCurrentSessionContext
-
- SessionThread - Class in dk.brics.jwig
-
Session thread.
- SessionThread() - Constructor for class dk.brics.jwig.SessionThread
-
- sessionTimeout(Session) - Method in class dk.brics.jwig.persistence.JwigCurrentSessionContext
-
- setAugmented(boolean) - Method in class dk.brics.jwig.Response
-
Sets augmented status.
- setAutoCloseEnabled(boolean) - Method in class dk.brics.jwig.persistence.JwigCurrentSessionContext
-
Sets whether or not the the session should be closed by transaction completion.
- setAutoFlushEnabled(boolean) - Method in class dk.brics.jwig.persistence.JwigCurrentSessionContext
-
Sets whether or not the the session should be flushed prior to transaction completion.
- setContentType(String) - Method in class dk.brics.jwig.Response
-
Sets the Content-Type.
- setErrorPage(XML) - Method in exception dk.brics.jwig.JWIGException
-
Sets the error page that is shown to the user.
- setHandler(String, AbstractHandler) - Method in class dk.brics.jwig.Response
-
Registers a handler for this response.
- setHeaders(HttpServletResponse) - Method in exception dk.brics.jwig.AuthorizationRequiredException
-
- setHeaders(HttpServletResponse) - Method in exception dk.brics.jwig.JWIGException
-
- setHeaders(HttpServletResponse) - Method in exception dk.brics.jwig.ServerBusyException
-
- setHeaders(HttpServletResponse) - Method in exception dk.brics.jwig.SessionDefunctException
-
- setId(Integer) - Method in class dk.brics.jwig.persistence.AbstractPersistable
-
- setLatestReturnValue(XML) - Method in class dk.brics.jwig.EventHandler
-
Invoked by the runtime system after the run
method has been invoked
to store the resulting XML value for the XML producer, and then notifies
listeners of the XML producer.
- setNoNull(boolean) - Method in class dk.brics.jwig.persistence.HibernateQuerier
-
If noNull is set then an exception will be thrown if no object with the given Id
exists when querying with getObject.
- setPassword(String) - Method in class dk.brics.jwig.User
-
Sets the password.
- setProperty(String, T) - Method in class dk.brics.jwig.WebApp
-
Sets a web app configuration property.
- setProperty(String, Object) - Method in class dk.brics.jwig.WebSite
-
Sets a web site configuration property.
- setResult(Object) - Method in class dk.brics.jwig.Response
-
- setStatus(int) - Method in class dk.brics.jwig.Response
-
Sets the status code.
- setText(String) - Method in class dk.brics.jwig.Response
-
Sets the payload to the given plain-text value.
- setUsername(String) - Method in class dk.brics.jwig.User
-
Sets the username.
- setXML(XML) - Method in class dk.brics.jwig.Response
-
Sets the payload to the given XML value.
- SubmitHandler - Class in dk.brics.jwig
-
Handler for form submit requests.
- SubmitHandler(Object...) - Constructor for class dk.brics.jwig.SubmitHandler
-
Constructs a new submit handler for the current page.