Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / HTTPNotFoundHandler.cs / 1 / HTTPNotFoundHandler.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * Synchronous Http request handler interface * * Copyright (c) 1998 Microsoft Corporation */ namespace System.Web { ////// internal class HttpNotFoundHandler : IHttpHandler { internal HttpNotFoundHandler() { } ///Provides a synchronous Http request handler interface. ////// public void ProcessRequest(HttpContext context) { PerfCounters.IncrementCounter(AppPerfCounter.REQUESTS_NOT_FOUND); throw new HttpException(404, SR.GetString(SR.Path_not_found, context.Request.Path)); } ///Drives web processing execution. ////// public bool IsReusable { get { return true; } } } internal class HttpForbiddenHandler : IHttpHandler { internal HttpForbiddenHandler() { } ///Indicates whether an HttpNotFoundHandler instance can be recycled and used /// for another request. ////// public void ProcessRequest(HttpContext context) { PerfCounters.IncrementCounter(AppPerfCounter.REQUESTS_NOT_FOUND); throw new HttpException(403, SR.GetString(SR.Path_forbidden, context.Request.Path)); } ///Drives web processing execution. ////// public bool IsReusable { get { return true; } } } ///Indicates whether an HttpForbiddenHandler instance can be recycled and used /// for another request. ////// internal class HttpMethodNotAllowedHandler : IHttpHandler { internal HttpMethodNotAllowedHandler() { } ///Provides a synchronous Http request handler interface. ////// public void ProcessRequest(HttpContext context) { throw new HttpException(405, SR.GetString(SR.Path_forbidden, context.Request.HttpMethod)); } ///Drives /// web processing execution. ////// public bool IsReusable { get { return true; } } } ///Indicates whether an HttpForbiddenHandler instance can be recycled and used /// for another request. ////// internal class HttpNotImplementedHandler : IHttpHandler { internal HttpNotImplementedHandler() { } ///Provides a synchronous Http request handler interface. ////// public void ProcessRequest(HttpContext context) { throw new HttpException(501, SR.GetString(SR.Method_for_path_not_implemented, context.Request.HttpMethod, context.Request.Path)); } ///Drives web processing execution. ////// public bool IsReusable { get { return true; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //Indicates whether an HttpNotImplementedHandler instance can be recycled and /// used for another request. ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * Synchronous Http request handler interface * * Copyright (c) 1998 Microsoft Corporation */ namespace System.Web { ////// internal class HttpNotFoundHandler : IHttpHandler { internal HttpNotFoundHandler() { } ///Provides a synchronous Http request handler interface. ////// public void ProcessRequest(HttpContext context) { PerfCounters.IncrementCounter(AppPerfCounter.REQUESTS_NOT_FOUND); throw new HttpException(404, SR.GetString(SR.Path_not_found, context.Request.Path)); } ///Drives web processing execution. ////// public bool IsReusable { get { return true; } } } internal class HttpForbiddenHandler : IHttpHandler { internal HttpForbiddenHandler() { } ///Indicates whether an HttpNotFoundHandler instance can be recycled and used /// for another request. ////// public void ProcessRequest(HttpContext context) { PerfCounters.IncrementCounter(AppPerfCounter.REQUESTS_NOT_FOUND); throw new HttpException(403, SR.GetString(SR.Path_forbidden, context.Request.Path)); } ///Drives web processing execution. ////// public bool IsReusable { get { return true; } } } ///Indicates whether an HttpForbiddenHandler instance can be recycled and used /// for another request. ////// internal class HttpMethodNotAllowedHandler : IHttpHandler { internal HttpMethodNotAllowedHandler() { } ///Provides a synchronous Http request handler interface. ////// public void ProcessRequest(HttpContext context) { throw new HttpException(405, SR.GetString(SR.Path_forbidden, context.Request.HttpMethod)); } ///Drives /// web processing execution. ////// public bool IsReusable { get { return true; } } } ///Indicates whether an HttpForbiddenHandler instance can be recycled and used /// for another request. ////// internal class HttpNotImplementedHandler : IHttpHandler { internal HttpNotImplementedHandler() { } ///Provides a synchronous Http request handler interface. ////// public void ProcessRequest(HttpContext context) { throw new HttpException(501, SR.GetString(SR.Method_for_path_not_implemented, context.Request.HttpMethod, context.Request.Path)); } ///Drives web processing execution. ////// public bool IsReusable { get { return true; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.Indicates whether an HttpNotImplementedHandler instance can be recycled and /// used for another request. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RotateTransform.cs
- FileDialog.cs
- UserPreferenceChangedEventArgs.cs
- BufferedWebEventProvider.cs
- CookielessData.cs
- LateBoundBitmapDecoder.cs
- ClaimTypes.cs
- PairComparer.cs
- XmlElementCollection.cs
- EntityModelSchemaGenerator.cs
- DbConnectionPoolOptions.cs
- RowSpanVector.cs
- CodeAccessPermission.cs
- TransformerConfigurationWizardBase.cs
- Delegate.cs
- ColorMatrix.cs
- BaseParser.cs
- BrowserCapabilitiesCodeGenerator.cs
- ThreadStartException.cs
- ConsumerConnectionPoint.cs
- ListBoxItem.cs
- X509CertificateValidator.cs
- PackageStore.cs
- WindowsRegion.cs
- PrintPageEvent.cs
- ToolStripContentPanelDesigner.cs
- CompressionTransform.cs
- SynchronizedDispatch.cs
- PerfCounters.cs
- SmiEventSink_DeferedProcessing.cs
- TransformGroup.cs
- ContentPlaceHolder.cs
- ObjectDataSourceStatusEventArgs.cs
- PhysicalOps.cs
- ObjectDataSourceChooseTypePanel.cs
- BrowserCapabilitiesCodeGenerator.cs
- XmlAnyElementAttributes.cs
- EntityContainerEmitter.cs
- ApplicationSettingsBase.cs
- BindingExpression.cs
- GroupBoxRenderer.cs
- ImageMapEventArgs.cs
- PrincipalPermissionMode.cs
- XmlnsDictionary.cs
- DateTimePickerDesigner.cs
- SelectionListComponentEditor.cs
- AlternateViewCollection.cs
- CFGGrammar.cs
- SplitterEvent.cs
- TypeUtil.cs
- BezierSegment.cs
- SmtpReplyReader.cs
- Accessible.cs
- FilteredAttributeCollection.cs
- ReadingWritingEntityEventArgs.cs
- odbcmetadatacolumnnames.cs
- DbConnectionHelper.cs
- XmlSignatureManifest.cs
- FormViewRow.cs
- ReachIDocumentPaginatorSerializer.cs
- AsyncPostBackTrigger.cs
- EntityProxyTypeInfo.cs
- CookieProtection.cs
- MemoryMappedViewStream.cs
- MdImport.cs
- WebResponse.cs
- DataGridViewCellLinkedList.cs
- XhtmlBasicLabelAdapter.cs
- FixedTextBuilder.cs
- XpsFontSubsetter.cs
- SqlUdtInfo.cs
- IImplicitResourceProvider.cs
- LocalServiceSecuritySettingsElement.cs
- FileDialogPermission.cs
- DefaultProxySection.cs
- ComplexPropertyEntry.cs
- DataGridHeaderBorder.cs
- DocumentSchemaValidator.cs
- CalendarDayButton.cs
- Int32Animation.cs
- OptimalTextSource.cs
- RevocationPoint.cs
- PartManifestEntry.cs
- HostExecutionContextManager.cs
- AuthenticateEventArgs.cs
- sqlstateclientmanager.cs
- ToolStripContentPanel.cs
- AdornerHitTestResult.cs
- WizardForm.cs
- ExpressionBuilderCollection.cs
- ExtenderProviderService.cs
- SecurityPermission.cs
- SafeLocalMemHandle.cs
- AssemblyCacheEntry.cs
- DataTableClearEvent.cs
- CurrencyWrapper.cs
- ClientRolePrincipal.cs
- ExtensibleClassFactory.cs
- AutomationIdentifierGuids.cs
- ConnectionPoint.cs