Namespace: OpenEdge.Web
Class
DefaultWebHandler
Parent classes:
Inherits: OpenEdge.Web.WebHandler

Copyright (c) 2015-2016 by Progress Software Corporation. All rights reserved.
File:DefaultWebHandler
Purpose:Returns 501 Not Implemented or 405 Method Not Allowed for all HTTP Methods
Author(s):mbanks
Created:Tue Jun 23 11:52:02 EDT 2015
/* Uses the default implementation for each HTTP method, which is one of HandleNotAllowedMethod
or HandleNotImplemented




Method Summary
Options Name Purpose
LOGICAL CanAcceptContentType (IWebRequest, character) /* Ensures that the request's Accept header and the operation's ContentType values are compatible, per https://tools.ietf.org/html/rfc7231#section-5.3.2 ContentType must be a complete type/subtype. Accept may contain type/subtype, type/<star> or <star>/<star> values. If <star>/<star> values appear the we can service the request. @param IWebRequest The request that resulting in the exception @param character The MIME type we're wanting to return (usally from the operation) @return logical TRUE if the operation's ContentType is compatible with the request's Accept value */
Inherited from OpenEdge.Web.WebHandler
INTEGER HandleDelete (IWebRequest) /* Default handler for the HTTP DELETE method @param IWebRequest The request being serviced @return integer An optional status code. A zero or null value means this method will deal with all errors */
Inherited from OpenEdge.Web.WebHandler
INTEGER HandleException (Error, IWebRequest) /* Handles an exception that has been raised while dealing with the request @param Progress.Lang.Error The as-yet-unhandled exception @param IWebRequest The request that resulting in the exception @return integer A non-null status code use to deal with errors */
Inherited from OpenEdge.Web.WebHandler
INTEGER HandleGet (IWebRequest) /* Default handler for the HTTP GET method @param IWebRequest The request being serviced @return integer An optional status code. A zero or null value means this method will deal with all errors */
Inherited from OpenEdge.Web.WebHandler
INTEGER HandleHead (IWebRequest) /* Default handler for the HTTP HEAD method @param IWebRequest The request being serviced @return integer An optional status code. A zero or null value means this method will deal with all errors */
Inherited from OpenEdge.Web.WebHandler
INTEGER HandleNotAllowedMethod (IWebRequest) /* Default handler for unsupported methods @param IWebRequest The request being serviced @return integer An optional status code. A zero or null value means this method will deal with all errors */
Overrides OpenEdge.Web.WebHandler:HandleNotAllowedMethod (IWebRequest)
INTEGER HandleNotImplemented (IWebRequest) /* Default handler for unknown methods @param IWebRequest The request being serviced @return integer An optional status code. A zero or null value means this method will deal with all errors */
Overrides OpenEdge.Web.WebHandler:HandleNotImplemented (IWebRequest)
INTEGER HandleOptions (IWebRequest) /* Default handler for the HTTP OPTIONS method @param IWebRequest The request being serviced @return integer An optional status code. A zero or null value means this method will deal with all errors */
Inherited from OpenEdge.Web.WebHandler
INTEGER HandlePatch (IWebRequest) /* Default handler for the HTTP PATCH method @param IWebRequest The request being serviced @return integer An optional status code. A zero or null value means this method will deal with all errors */
Inherited from OpenEdge.Web.WebHandler
INTEGER HandlePost (IWebRequest) /* Default handler for the HTTP POST method @param IWebRequest The request being serviced @return integer An optional status code. A zero or null value means this method will deal with all errors */
Inherited from OpenEdge.Web.WebHandler
INTEGER HandlePut (IWebRequest) /* Default handler for the HTTP PUT method @param IWebRequest The request being serviced @return integer An optional status code. A zero or null value means this method will deal with all errors */
Inherited from OpenEdge.Web.WebHandler
INTEGER HandleRequest () /* Uses the default implementation for each HTTP method, which is one of HandleNotAllowedMethod or HandleNotImplemented */
Overrides OpenEdge.Web.WebHandler:HandleRequest ()
INTEGER HandleTrace (IWebRequest) /* Default handler for the HTTP TRACE method @param IWebRequest The request being serviced @return integer An optional status code. A zero or null value means this method will deal with all errors */
Inherited from OpenEdge.Web.WebHandler
LogMessage (character, integer) /** Logs a message @param character The message to log @param integer The level this message should be logged at */
Inherited from OpenEdge.Web.WebHandler

Property Summary
Options Name Purpose
ILogWriter Logger
Inherited from OpenEdge.Web.WebHandler


Method Detail
Top

PROTECTED LOGICAL CanAcceptContentType (IWebRequest, character)

Inherited from OpenEdge.Web.WebHandler
/* Ensures that the request's Accept header and the operation's
ContentType values are compatible, per https://tools.ietf.org/html/rfc7231#section-5.3.2
ContentType must be a complete type/subtype.
Accept may contain type/subtype, type/<star> or <star>/<star> values. If <star>/<star>
values appear the we can service the request.
Parameters:
pRequest OpenEdge.Web.IWebRequest
pContentType CHARACTER
Returns LOGICAL
logical TRUE if the operation's ContentType is compatible with the request's Accept value
Top

PROTECTED INTEGER HandleDelete (IWebRequest)

Inherited from OpenEdge.Web.WebHandler
/* Default handler for the HTTP DELETE method
method will deal with all errors
Parameters:
poRequest OpenEdge.Web.IWebRequest
Returns INTEGER
integer An optional status code. A zero or null value means this
Top

PROTECTED INTEGER HandleException (Error, IWebRequest)

Inherited from OpenEdge.Web.WebHandler
/* Handles an exception that has been raised while dealing with the request
Parameters:
poError Progress.Lang.Error
poRequest OpenEdge.Web.IWebRequest
Returns INTEGER
integer A non-null status code use to deal with errors
Top

PROTECTED INTEGER HandleGet (IWebRequest)

Inherited from OpenEdge.Web.WebHandler
/* Default handler for the HTTP GET method
method will deal with all errors
Parameters:
poRequest OpenEdge.Web.IWebRequest
Returns INTEGER
integer An optional status code. A zero or null value means this
Top

PROTECTED INTEGER HandleHead (IWebRequest)

Inherited from OpenEdge.Web.WebHandler
/* Default handler for the HTTP HEAD method
method will deal with all errors
Parameters:
poRequest OpenEdge.Web.IWebRequest
Returns INTEGER
integer An optional status code. A zero or null value means this
Top

PROTECTED INTEGER HandleNotAllowedMethod (IWebRequest)

Overrides OpenEdge.Web.WebHandler:HandleNotAllowedMethod (IWebRequest)
/* Default handler for unsupported methods
Parameters:
poRequest OpenEdge.Web.IWebRequest
Returns INTEGER
integer An optional status code. A zero or null value means this method will deal with all errors
Top

PROTECTED INTEGER HandleNotImplemented (IWebRequest)

Overrides OpenEdge.Web.WebHandler:HandleNotImplemented (IWebRequest)
/* Default handler for unknown methods
Parameters:
poRequest OpenEdge.Web.IWebRequest
Returns INTEGER
integer An optional status code. A zero or null value means this method will deal with all errors
Top

PROTECTED INTEGER HandleOptions (IWebRequest)

Inherited from OpenEdge.Web.WebHandler
/* Default handler for the HTTP OPTIONS method
method will deal with all errors
Parameters:
poRequest OpenEdge.Web.IWebRequest
Returns INTEGER
integer An optional status code. A zero or null value means this
Top

PROTECTED INTEGER HandlePatch (IWebRequest)

Inherited from OpenEdge.Web.WebHandler
/* Default handler for the HTTP PATCH method
method will deal with all errors
Parameters:
poRequest OpenEdge.Web.IWebRequest
Returns INTEGER
integer An optional status code. A zero or null value means this
Top

PROTECTED INTEGER HandlePost (IWebRequest)

Inherited from OpenEdge.Web.WebHandler
/* Default handler for the HTTP POST method
method will deal with all errors
Parameters:
poRequest OpenEdge.Web.IWebRequest
Returns INTEGER
integer An optional status code. A zero or null value means this
Top

PROTECTED INTEGER HandlePut (IWebRequest)

Inherited from OpenEdge.Web.WebHandler
/* Default handler for the HTTP PUT method
method will deal with all errors
Parameters:
poRequest OpenEdge.Web.IWebRequest
Returns INTEGER
integer An optional status code. A zero or null value means this
Top

PUBLIC INTEGER HandleRequest ()

Overrides OpenEdge.Web.WebHandler:HandleRequest ()
/* Uses the default implementation for each HTTP method, which is one of HandleNotAllowedMethod
or HandleNotImplemented
Returns INTEGER
Top

PROTECTED INTEGER HandleTrace (IWebRequest)

Inherited from OpenEdge.Web.WebHandler
/* Default handler for the HTTP TRACE method
method will deal with all errors
Parameters:
poRequest OpenEdge.Web.IWebRequest
Returns INTEGER
integer An optional status code. A zero or null value means this
Top

PROTECTED LogMessage (character, integer)

Inherited from OpenEdge.Web.WebHandler
Purpose: Logs a message
Parameters:
pcMessage CHARACTER
piLogLevel INTEGER


Property Detail
Top

PUBLIC ILogWriter Logger

Inherited from OpenEdge.Web.WebHandler
Returns ILogWriter


Copyright © 2020 Progress Software Corporation. All rights Reserved.

Progress® OpenEdge® Release 12.2.0