Element | Contains | Description |
---|---|---|
web-app | (error-page) (mime-mapping) | Root element for a configuration file. All other elements in a configuration file are contained within the web-app element. |
Element | Contains | Description |
---|---|---|
error-page | error-code location | Defines a static page for the servlet container to return to the client when the Agent returns an error. |
error-code | HttpErrorCode | Contains the numeric HTTP error code this error-page element applies to. For example, 500 specifies that the error-page handles internal server errors. |
location | PathToFile or FileURL | Contains the location of the resource, either as a path to a file in a context or as a complete URL. For example, a value of /examples/500.html declares that the error-page is a file named 500.html located at the root level of the examples context. For a complete URL, the servlet container returns the contents of an HTTP request to the location. For example, the value http://other.com/404.html states that the container should return the result of the HTTP request. |
Element | Contains | Description |
---|---|---|
mime-mapping | extension mime-type | Defines a mapping between a file extension and a MIME type. |
extension | FileExtension | Contains the file extension, for example txt. |
mime-type | MIMEType | Contains the MIME type, for example text/plain. |