Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- FileDialogCustomPlace.cs
- CLRBindingWorker.cs
- XmlDomTextWriter.cs
- EntityDataSourceContainerNameItem.cs
- ObjectNotFoundException.cs
- XmlnsDefinitionAttribute.cs
- Track.cs
- XmlArrayItemAttributes.cs
- MobileRedirect.cs
- WindowInteractionStateTracker.cs
- MarkupCompilePass2.cs
- OracleNumber.cs
- SystemResources.cs
- SqlParameter.cs
- TabRenderer.cs
- WorkflowInstanceQuery.cs
- SimpleRecyclingCache.cs
- IdentifierService.cs
- CompilerCollection.cs
- RoleManagerEventArgs.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- DataGridCommandEventArgs.cs
- CellTreeNode.cs
- coordinatorfactory.cs
- ExceptionUtil.cs
- DbLambda.cs
- DataServiceCollectionOfT.cs
- Convert.cs
- ListView.cs
- TableLayoutSettingsTypeConverter.cs
- InputLangChangeEvent.cs
- ParamArrayAttribute.cs
- ReachDocumentSequenceSerializerAsync.cs
- PageHandlerFactory.cs
- SystemIPAddressInformation.cs
- Pool.cs
- Pipe.cs
- PartialTrustHelpers.cs
- XmlAttributeAttribute.cs
- RequestCachePolicyConverter.cs
- PerformanceCounterManager.cs
- NativeCppClassAttribute.cs
- InvokeDelegate.cs
- Style.cs
- CustomErrorsSection.cs
- SizeAnimationUsingKeyFrames.cs
- MimeObjectFactory.cs
- WebPartDisplayMode.cs
- PropertyValueChangedEvent.cs
- MinMaxParagraphWidth.cs
- PeerInvitationResponse.cs
- DataServiceConfiguration.cs
- CompositeDataBoundControl.cs
- DesignerImageAdapter.cs
- NavigationPropertyEmitter.cs
- ExpressionConverter.cs
- ViewManager.cs
- DefaultValueTypeConverter.cs
- IProvider.cs
- SmtpNegotiateAuthenticationModule.cs
- SoapMessage.cs
- WindowsScrollBarBits.cs
- WindowsScrollBar.cs
- XmlLinkedNode.cs
- NullPackagingPolicy.cs
- HtmlInputSubmit.cs
- DotExpr.cs
- SortAction.cs
- FileVersionInfo.cs
- SafeLocalAllocation.cs
- DebugView.cs
- ParallelTimeline.cs
- ExpressionConverter.cs
- DataException.cs
- Identifier.cs
- EUCJPEncoding.cs
- PictureBox.cs
- ServiceEndpointAssociationProvider.cs
- BitmapEffectRenderDataResource.cs
- UnsafeNativeMethodsPenimc.cs
- PropertyValueChangedEvent.cs
- baseaxisquery.cs
- UnsafeNativeMethods.cs
- FileEnumerator.cs
- ListView.cs
- ExceptionRoutedEventArgs.cs
- StateMachineDesignerPaint.cs
- While.cs
- PerspectiveCamera.cs
- SessionEndingCancelEventArgs.cs
- BitmapCacheBrush.cs
- BamlLocalizableResourceKey.cs
- CounterCreationDataCollection.cs
- ComPlusServiceLoader.cs
- ServiceDescriptions.cs
- NamedPipeAppDomainProtocolHandler.cs
- DesignerToolboxInfo.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- SharedPersonalizationStateInfo.cs
- AdapterSwitches.cs