A base class which can be subclassed to create a HTTP component for a Web site.
More...
|
| OnDelete (TdjRequest Request, TdjResponse Response) |
| Called by the server (via the service method) to allow a component to handle a DELETE request.
|
|
| OnGet (TdjRequest Request, TdjResponse Response) |
| Called by the server (via the service method) to allow a component to handle a GET request.
|
|
| OnHead (TdjRequest Request, TdjResponse Response) |
| Called by the server (via the service method) to allow a component to handle a HEAD request.
|
|
| OnOptions (TdjRequest Request, TdjResponse Response) |
| Called by the server (via the service method) to allow a component to handle a OPTIONS request.
|
|
| OnPost (TdjRequest Request, TdjResponse Response) |
| Called by the server (via the service method) to allow a component to handle a POST request.
|
|
| OnPut (TdjRequest Request, TdjResponse Response) |
| Called by the server (via the service method) to allow a component to handle a PUT request.
|
|
| OnTrace (TdjRequest Request, TdjResponse Response) |
| Called by the server (via the service method) to allow a component to handle a TRACE request.
|
|
| OnPatch (TdjRequest Request, TdjResponse Response) |
| Called by the server (via the service method) to allow a component to handle a PATCH request.
|
|
TDateTime | OnGetLastModified (TdjRequest Request) |
| Returns the time the WebComponent object was last modified.
|
|
| Service (TdjServerContext Context, TdjRequest Request, TdjResponse Response) |
| Handle a HTTP request.
|
|
A base class which can be subclassed to create a HTTP component for a Web site.
A subclass of TdjWebComponent must override at least one method, usually one of these:
- OnGet, if the web component supports HTTP GET requests
- OnPost, for HTTP POST requests
- OnPut, for HTTP PUT requests
- OnDelete, for HTTP DELETE requests
TDateTime TdjWebComponent::OnGetLastModified |
( |
TdjRequest | Request | ) |
|
|
protected |
Returns the time the WebComponent object was last modified.
If the time is unknown, this method returns 0 (the default).
WebComponents that support HTTP GET requests and can quickly determine their last modification time should override this method. This makes browser and proxy caches work more effectively, reducing the load on server and network resources.
- Parameters
-
- Returns
- the last modified timestamp