Namespace: OpenEdge.Net.HTTP
Class
StatusCodeHelper
Parent classes:
Progress.Lang.Object

Inherits: Progress.Lang.Object

Copyright (c) 2015-2016 by Progress Software Corporation. All rights reserved.
File:StatusCodeHelper
Purpose:Helps to convert/find default values for status codes and
their messages
Author(s):pjudge
Created:Wed Sep 16 10:57:44 EDT 2015
/* Returns the default status message for a status code.




Method Summary
Options Name Purpose
OpenEdge.Net.HTTP.StatusCodeEnum GetCode (character) /* Finds the default status code enum for a status message, if possible. Returns StatusCodeEnum:Unknown if the text cannot be converted into an existing enum. @param character The status text @return StatusCodeEnum A status code enumeration based on the name */
CHARACTER GetMessage (integer) /* Returns the default status message for a status code. @param integer The status code to convert. @return character The (default) status code text. */
CHARACTER GetMessage (StatusCodeEnum) /* Returns the default status message for a status code. @param StatusCodeEnum The status code to convert. @return character The (default) status code text. */


Method Detail
Top

OpenEdge.Net.HTTP.StatusCodeEnum GetCode (character)

/* Finds the default status code enum for a status message, if possible.
Returns StatusCodeEnum:Unknown if the text cannot be converted into an
existing enum.
Parameters:
pcStatusMessage CHARACTER
Returns OpenEdge.Net.HTTP.StatusCodeEnum
StatusCodeEnum A status code enumeration based on the name
Top

CHARACTER GetMessage (integer)

/* Returns the default status message for a status code.
Parameters:
piStatusCode INTEGER
Returns CHARACTER
character The (default) status code text.
Top

CHARACTER GetMessage (StatusCodeEnum)

/* Returns the default status message for a status code.
Parameters:
poStatusCode OpenEdge.Net.HTTP.StatusCodeEnum
Returns CHARACTER
character The (default) status code text.


Copyright © 2022 Progress Software Corporation. All rights Reserved.

Progress® OpenEdge® Release 11.7.15