Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- MailMessageEventArgs.cs
- CallSiteOps.cs
- DeclaredTypeValidatorAttribute.cs
- PictureBoxDesigner.cs
- DocumentScope.cs
- TextDecorationCollectionConverter.cs
- ColumnProvider.cs
- ConstantSlot.cs
- NativeRecognizer.cs
- KeyboardNavigation.cs
- PopupRootAutomationPeer.cs
- DelegatingConfigHost.cs
- BitVector32.cs
- MarkerProperties.cs
- TransactionFlowElement.cs
- RuntimeDelegateArgument.cs
- DataRowExtensions.cs
- ContractListAdapter.cs
- WebScriptEndpoint.cs
- CrossAppDomainChannel.cs
- TextModifierScope.cs
- IdnElement.cs
- PersonalizationProviderHelper.cs
- LinqDataSourceHelper.cs
- WebPartExportVerb.cs
- WpfXamlMember.cs
- TransactionFilter.cs
- LightweightEntityWrapper.cs
- ProviderUtil.cs
- PerformanceCounterManager.cs
- ArgIterator.cs
- BooleanConverter.cs
- UICuesEvent.cs
- CommandEventArgs.cs
- Repeater.cs
- XmlEncodedRawTextWriter.cs
- PerformanceCounter.cs
- PolyQuadraticBezierSegment.cs
- FlowLayoutPanelDesigner.cs
- RequestCache.cs
- FormsAuthentication.cs
- SessionIDManager.cs
- FixedPosition.cs
- NullableDoubleSumAggregationOperator.cs
- StreamWriter.cs
- IntermediatePolicyValidator.cs
- TimeStampChecker.cs
- ExecutionContext.cs
- ValueExpressions.cs
- OleDbPropertySetGuid.cs
- DoubleLinkList.cs
- WrappedIUnknown.cs
- EmptyWithCancelationCheckWorkItem.cs
- SwitchAttribute.cs
- DbMetaDataCollectionNames.cs
- GridViewColumn.cs
- GacUtil.cs
- Int64KeyFrameCollection.cs
- PipeSecurity.cs
- DataGridViewLayoutData.cs
- DataGridViewBindingCompleteEventArgs.cs
- OutputCacheSection.cs
- ForeignConstraint.cs
- MaterialCollection.cs
- PageHandlerFactory.cs
- DesignerCatalogPartChrome.cs
- ContextBase.cs
- FileUpload.cs
- LocalizedNameDescriptionPair.cs
- ConnectionsZoneDesigner.cs
- ControlTemplate.cs
- XmlWrappingWriter.cs
- ExpressionConverter.cs
- DataComponentGenerator.cs
- IxmlLineInfo.cs
- RuntimeResourceSet.cs
- ClientSettingsStore.cs
- FloaterBaseParaClient.cs
- SessionPageStatePersister.cs
- StateItem.cs
- WebSysDisplayNameAttribute.cs
- TriggerAction.cs
- FlowDocumentReader.cs
- ServiceProviders.cs
- InkCanvasSelectionAdorner.cs
- WrappedReader.cs
- SafeCertificateStore.cs
- Bits.cs
- MultiBindingExpression.cs
- GeometryGroup.cs
- EntityViewContainer.cs
- FrameSecurityDescriptor.cs
- RectValueSerializer.cs
- RegexCompiler.cs
- HtmlTextArea.cs
- XMLSchema.cs
- SolidBrush.cs
- SqlCacheDependency.cs
- DbDeleteCommandTree.cs
- WCFServiceClientProxyGenerator.cs