wsp-10212 fixed: option set deatiled error mode on web site

This commit is contained in:
Ruslan Keba 2013-11-08 12:34:33 +02:00
parent 0a16e252c9
commit aa4db51dd5
7 changed files with 133 additions and 34 deletions

View file

@ -34,8 +34,25 @@ using System.ComponentModel;
namespace WebsitePanel.Providers.Web
{
public class HttpError
public enum HttpErrorsMode
{
DetailedLocalOnly = 0,
Custom = 1,
Detailed = 2
}
public enum HttpErrorsExistingResponse
{
Auto = 0,
Replace = 1,
PassThrough = 2
}
public class HttpError
{
public const HttpErrorsMode DefaultHttpErrorsMode = HttpErrorsMode.DetailedLocalOnly;
public const HttpErrorsExistingResponse DefaultHttpErrorsExistingResponse = HttpErrorsExistingResponse.Auto;
private string errorCode;
private string errorSubcode;
private string handlerType;

View file

@ -61,6 +61,8 @@ namespace WebsitePanel.Providers.Web
private string defaultDocs;
private string httpRedirect;
private HttpError[] httpErrors;
private HttpErrorsMode errorMode;
private HttpErrorsExistingResponse existingResponse;
private MimeMap[] mimeMaps;
private HttpHeader[] httpHeaders;
private bool aspInstalled;
@ -122,6 +124,18 @@ namespace WebsitePanel.Providers.Web
set { httpErrors = value; }
}
public HttpErrorsMode ErrorMode
{
get { return errorMode; }
set { errorMode = value; }
}
public HttpErrorsExistingResponse ExistingResponse
{
get { return existingResponse; }
set { existingResponse = value; }
}
public string ApplicationPool
{
get { return this.applicationPool; }