Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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; } } } }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
- Vars.cs
- ColorTransform.cs
- BaseCodePageEncoding.cs
- SqlDataSourceView.cs
- TracingConnection.cs
- ResizingMessageFilter.cs
- ImmComposition.cs
- ComplexPropertyEntry.cs
- AnimationLayer.cs
- XPathDocumentBuilder.cs
- FigureParagraph.cs
- CommandEventArgs.cs
- Tokenizer.cs
- ContextStack.cs
- EvidenceTypeDescriptor.cs
- StorageConditionPropertyMapping.cs
- WebServiceErrorEvent.cs
- IPCCacheManager.cs
- storepermissionattribute.cs
- _NativeSSPI.cs
- WsdlImporter.cs
- Currency.cs
- CurrentChangedEventManager.cs
- KeyTimeConverter.cs
- NamedObject.cs
- ConvertersCollection.cs
- CodePrimitiveExpression.cs
- ClientConfigPaths.cs
- SqlGatherConsumedAliases.cs
- XmlNotation.cs
- XDRSchema.cs
- Empty.cs
- CLSCompliantAttribute.cs
- RegexTree.cs
- DateTimeOffset.cs
- XmlNodeChangedEventArgs.cs
- RightsDocument.cs
- HealthMonitoringSection.cs
- MethodToken.cs
- DispatchOperationRuntime.cs
- ChannelManagerHelpers.cs
- EventLogRecord.cs
- WpfXamlMember.cs
- HttpCookiesSection.cs
- EventMappingSettingsCollection.cs
- ListBindingHelper.cs
- PaperSource.cs
- RelationshipEndMember.cs
- RichTextBoxAutomationPeer.cs
- TriState.cs
- RijndaelManagedTransform.cs
- EntityContainer.cs
- StyleBamlTreeBuilder.cs
- ConfigurationValue.cs
- Tool.cs
- UnauthorizedWebPart.cs
- WinEventTracker.cs
- MouseDevice.cs
- AvTrace.cs
- ListControlConvertEventArgs.cs
- ResponseBodyWriter.cs
- IItemContainerGenerator.cs
- ContentElement.cs
- ZipIOLocalFileDataDescriptor.cs
- BackEase.cs
- EarlyBoundInfo.cs
- IdentityModelStringsVersion1.cs
- _LoggingObject.cs
- SelectQueryOperator.cs
- PersonalizationProviderCollection.cs
- XmlTextEncoder.cs
- PTConverter.cs
- MouseEventArgs.cs
- ReadOnlyAttribute.cs
- SocketElement.cs
- ObjectHandle.cs
- BuildProvider.cs
- TextServicesDisplayAttribute.cs
- FormsAuthenticationUserCollection.cs
- XamlUtilities.cs
- WrapPanel.cs
- dataprotectionpermission.cs
- Library.cs
- EventToken.cs
- CreateUserWizard.cs
- CompositeControl.cs
- AddInToken.cs
- XPathAncestorIterator.cs
- BulletChrome.cs
- ComponentFactoryHelpers.cs
- AutomationPropertyInfo.cs
- HTTP_SERVICE_CONFIG_URLACL_PARAM.cs
- AppDomain.cs
- CacheEntry.cs
- HttpCapabilitiesBase.cs
- _FtpControlStream.cs
- Vector3DConverter.cs
- CompressedStack.cs
- RepeaterItemEventArgs.cs
- Solver.cs