Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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. // Copyright (c) Microsoft Corporation. All rights reserved.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
- DBNull.cs
- SizeF.cs
- Compensate.cs
- GroupItemAutomationPeer.cs
- CacheDependency.cs
- FixedDSBuilder.cs
- FeatureSupport.cs
- SystemNetHelpers.cs
- EditingCoordinator.cs
- ControlParameter.cs
- FieldTemplateUserControl.cs
- HttpModuleCollection.cs
- StrongNamePublicKeyBlob.cs
- Buffer.cs
- NativeMethods.cs
- ScriptReferenceEventArgs.cs
- ScalarOps.cs
- WebEventCodes.cs
- CodeTypeConstructor.cs
- ErrorEventArgs.cs
- Helpers.cs
- CodeDirectoryCompiler.cs
- RC2CryptoServiceProvider.cs
- GlyphsSerializer.cs
- ProvidersHelper.cs
- HandleValueEditor.cs
- TagMapInfo.cs
- PenLineCapValidation.cs
- ApplicationInfo.cs
- ProgressChangedEventArgs.cs
- TextServicesCompartmentContext.cs
- HandlerBase.cs
- PopupControlService.cs
- HttpApplicationFactory.cs
- XPathNavigatorKeyComparer.cs
- SerializationSectionGroup.cs
- TextFormatterImp.cs
- NeutralResourcesLanguageAttribute.cs
- ScrollPatternIdentifiers.cs
- DataServiceRequestException.cs
- _LazyAsyncResult.cs
- PrimitiveXmlSerializers.cs
- ExtendedPropertyCollection.cs
- AnonymousIdentificationModule.cs
- EventMemberCodeDomSerializer.cs
- EllipticalNodeOperations.cs
- RemoteWebConfigurationHostServer.cs
- RegexMatch.cs
- StaticSiteMapProvider.cs
- FileDialogPermission.cs
- TableDetailsCollection.cs
- EventHandlerService.cs
- NominalTypeEliminator.cs
- DataServiceRequest.cs
- Registry.cs
- DesignerSerializerAttribute.cs
- CodeEventReferenceExpression.cs
- IntSecurity.cs
- MachineSettingsSection.cs
- TemplateBamlTreeBuilder.cs
- ContractMethodParameterInfo.cs
- ReservationNotFoundException.cs
- XmlSchemaGroupRef.cs
- UniqueSet.cs
- PeerCollaboration.cs
- SingleAnimationBase.cs
- SystemInfo.cs
- DataDesignUtil.cs
- GACIdentityPermission.cs
- SizeFConverter.cs
- AssemblyName.cs
- DictionaryManager.cs
- TreeView.cs
- ConfigurationElement.cs
- FrameworkElementAutomationPeer.cs
- IndexedEnumerable.cs
- PersonalizationDictionary.cs
- Switch.cs
- CompressedStack.cs
- RegexCapture.cs
- DrawingImage.cs
- ChineseLunisolarCalendar.cs
- CharAnimationUsingKeyFrames.cs
- Property.cs
- ToolTipService.cs
- SymbolType.cs
- GregorianCalendar.cs
- DbUpdateCommandTree.cs
- WorkflowEventArgs.cs
- WinEventHandler.cs
- UIPermission.cs
- EventRecordWrittenEventArgs.cs
- OneWayBindingElement.cs
- ImplicitInputBrush.cs
- PropertyGrid.cs
- CodeValidator.cs
- NoClickablePointException.cs
- DesignerVerbToolStripMenuItem.cs
- EventLogger.cs
- RegexCode.cs