Namespace: OpenEdge.Web.Dynamic
Class
ContentHandler
Parent classes:
Inherits: OpenEdge.Web.WebHandler

/*
/*




Method Summary
Options Name Purpose
AddValidPath (character) /* * Add a path prefix to the list of allowed paths. * Paths are relative to WEB-INF and must start with / */
CHARACTER GetContentDirectory (IWebRequest) /* * Get the directory for the files served by the handler */
CHARACTER GetContentPath (IWebRequest) /* * Get the path for the file to be served by the handler */
CHARACTER GetFileExtension (character) /* * Get the file name extension */
CHARACTER GetFilePathFromRequest (IWebRequest) /* * Extract from the request the full path to the requested file. */
INTEGER HandleGet (IWebRequest) /* * Handle GET request. Returns files from directory. */
INTEGER HandleNotAllowedMethod (IWebRequest) /* * Handle methods that are marked as not allowed */
INTEGER HandleNotImplemented (IWebRequest) /* * Handle methods that are not implemented */
LOGICAL IsValidPath (IWebRequest) /* * Check a list of path prefixes to see if this request is * for a file in a valid directory. */
WriteFile (WebResponse, WebResponseWriter, character) /* * Write file to the response stream */

Constructor Summary
Options Name Purpose
ContentHandler ()


Method Detail
Top

AddValidPath (character)

/*
Parameters:
cPath CHARACTER
Top

CHARACTER GetContentDirectory (IWebRequest)

/*
Parameters:
poRequest OpenEdge.Web.IWebRequest
Returns CHARACTER
Top

CHARACTER GetContentPath (IWebRequest)

/*
Parameters:
poRequest OpenEdge.Web.IWebRequest
Returns CHARACTER
Top

CHARACTER GetFileExtension (character)

/*
Parameters:
cPathName CHARACTER
Returns CHARACTER
Top

CHARACTER GetFilePathFromRequest (IWebRequest)

/*
Parameters:
poRequest OpenEdge.Web.IWebRequest
Returns CHARACTER
Top

INTEGER HandleGet (IWebRequest)

/*
Parameters:
poRequest OpenEdge.Web.IWebRequest
Returns INTEGER
Top

INTEGER HandleNotAllowedMethod (IWebRequest)

/*
Parameters:
poRequest OpenEdge.Web.IWebRequest
Returns INTEGER
Top

INTEGER HandleNotImplemented (IWebRequest)

/*
Parameters:
poRequest OpenEdge.Web.IWebRequest
Returns INTEGER
Top

LOGICAL IsValidPath (IWebRequest)

/*
Parameters:
poRequest OpenEdge.Web.IWebRequest
Returns LOGICAL
Top

WriteFile (WebResponse, WebResponseWriter, character)

/*
Parameters:
response OpenEdge.Web.WebResponse
writer OpenEdge.Web.WebResponseWriter
cFullPathName CHARACTER


Constructor Detail
Top

ContentHandler ()



Copyright © 2022 Progress Software Corporation. All rights Reserved.

Progress® OpenEdge® Release 11.7.15