Namespace: OpenEdge.Web.DataObject
Class
FileOperationHandler
Parent classes:
Inherits: Progress.Lang.Object
Implements: OpenEdge.Logging.ISupportLogging, OpenEdge.Web.DataObject.IOperationHandler

/* *************************************************************************************************************************
Copyright (c) 2016 by Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.
File:FileOperationHandler
Purpose:Delegate for mapped file operations for the DOH
Author(s):pjudge
Created:Fri May 20 12:15:00 EDT 2016




Method Summary
Options Name Purpose
INTEGER Execute (IWebRequest, Object, IHttpResponse, MappedOperation, Object) /* Executes the operation. @param IWebRequest The request that resulting in the exception @param P.L.Object The message body of the incoming request. Typically will be transformed from bytes into something useful; may also have an envelope removed. @param IHttpResponse The current response object, if any @param MappedOperation The mapped operation @param P.L.Object The business entity (business logic service) @return integer A non-null status code use to deal with errors */
INTEGER Read (MappedOperation, IWebRequest, IHttpResponse) /* Reads a file off disk and puts it into the response Entity @param MappedOperation The current operation @param IWebRequest The source request @param IHttpResponse the response @return integer The status code to return */
INTEGER Remove (MappedOperation, IWebRequest, IHttpResponse) /* Deletes a file from disk @param MappedOperation The current operation @param IWebRequest The source request @param IHttpResponse the response @return integer The status code to return */
CHARACTER ResolveTokens (MappedOperation, IWebRequest) /* Resolves any tokens in the file name (TargetName) into appropriate values @param MappedOperation The operation @param IWebRequest The current request @return character The resolved filename */
VerifyReadAccess (handle, character) /* Ensures that we have read permissions for this file @param handle The FILE-INFO handle representing the file @param character The tomcat webapp name */
VerifyWriteAccess (handle, character) /* Ensures that we have write permissions for this file @param handle The FILE-INFO handle representing the file @param character The tomcat webapp name */
INTEGER Write (MappedOperation, IWebRequest, Object, IHttpResponse) /* Writes a file to disk from the request's Entity @param MappedOperation The current operation @param IWebRequest The source request @param IHttpResponse the response @return integer The status code to return */

Constructor Summary
Options Name Purpose
FileOperationHandler ()

Property Summary
Options Name Purpose
OpenEdge.Logging.ILogWriter Logger


Method Detail
Top

INTEGER Execute (IWebRequest, Object, IHttpResponse, MappedOperation, Object)

/* Executes the operation.
will be transformed from bytes into something useful; may also have an envelope removed.
Parameters:
poRequest OpenEdge.Web.IWebRequest
poMessageBody Progress.Lang.Object
poResponse OpenEdge.Net.HTTP.IHttpResponse
poOperation OpenEdge.Web.DataObject.MappedOperation
poBusinessEntity Progress.Lang.Object
Returns INTEGER
integer A non-null status code use to deal with errors
Top

INTEGER Read (MappedOperation, IWebRequest, IHttpResponse)

/* Reads a file off disk and puts it into the response Entity
Parameters:
poOperation OpenEdge.Web.DataObject.MappedOperation
poRequest OpenEdge.Web.IWebRequest
poResponse OpenEdge.Net.HTTP.IHttpResponse
Returns INTEGER
integer The status code to return
Top

INTEGER Remove (MappedOperation, IWebRequest, IHttpResponse)

/* Deletes a file from disk
Parameters:
poOperation OpenEdge.Web.DataObject.MappedOperation
poRequest OpenEdge.Web.IWebRequest
poResponse OpenEdge.Net.HTTP.IHttpResponse
Returns INTEGER
integer The status code to return
Top

CHARACTER ResolveTokens (MappedOperation, IWebRequest)

/* Resolves any tokens in the file name (TargetName) into appropriate values
Parameters:
poOperation OpenEdge.Web.DataObject.MappedOperation
poRequest OpenEdge.Web.IWebRequest
Returns CHARACTER
character The resolved filename
Top

VerifyReadAccess (handle, character)

/* Ensures that we have read permissions for this file
Parameters:
phFile HANDLE
pcWebAppPath CHARACTER
Top

VerifyWriteAccess (handle, character)

/* Ensures that we have write permissions for this file
Parameters:
phFile HANDLE
pcWebAppPath CHARACTER
Top

INTEGER Write (MappedOperation, IWebRequest, Object, IHttpResponse)

/* Writes a file to disk from the request's Entity
Parameters:
poOperation OpenEdge.Web.DataObject.MappedOperation
poRequest OpenEdge.Web.IWebRequest
poMessageBody Progress.Lang.Object
poResponse OpenEdge.Net.HTTP.IHttpResponse
Returns INTEGER
integer The status code to return


Constructor Detail
Top

FileOperationHandler ()



Property Detail
Top

OpenEdge.Logging.ILogWriter Logger

Returns OpenEdge.Logging.ILogWriter


Copyright © 2017 Progress Software Corporation. All rights Reserved.

Progress® OpenEdge® Release 11.7