Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / 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. ///// 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
- ASCIIEncoding.cs
- AttachmentCollection.cs
- SecurityChannelFactory.cs
- Int64AnimationBase.cs
- CommandConverter.cs
- ObjectStorage.cs
- WeakReferenceKey.cs
- QuaternionRotation3D.cs
- FixedTextPointer.cs
- SizeConverter.cs
- EncoderExceptionFallback.cs
- HitTestWithPointDrawingContextWalker.cs
- PolicyValidationException.cs
- HelpInfo.cs
- IntSecurity.cs
- PresentationUIStyleResources.cs
- safelink.cs
- BitmapSizeOptions.cs
- DeferredElementTreeState.cs
- CompilerResults.cs
- ReferenceService.cs
- IERequestCache.cs
- IgnorePropertiesAttribute.cs
- NameValuePair.cs
- XDRSchema.cs
- QuarticEase.cs
- Double.cs
- ClientRuntimeConfig.cs
- TemplateField.cs
- ImageSource.cs
- RegexCompiler.cs
- HebrewCalendar.cs
- ProxyWebPartManager.cs
- CompilationAssemblyInstallComponent.cs
- DataGridCheckBoxColumn.cs
- ExtenderControl.cs
- LocalValueEnumerator.cs
- SHA512.cs
- UIElementPropertyUndoUnit.cs
- MessageQueueEnumerator.cs
- XmlIlTypeHelper.cs
- HttpApplication.cs
- PageCodeDomTreeGenerator.cs
- Journal.cs
- Object.cs
- MessageEventSubscriptionService.cs
- SafeProcessHandle.cs
- TextTreeText.cs
- BrowserCapabilitiesCodeGenerator.cs
- TrustSection.cs
- CodeArrayIndexerExpression.cs
- MissingManifestResourceException.cs
- LambdaCompiler.Lambda.cs
- UnknownBitmapDecoder.cs
- ImpersonateTokenRef.cs
- ObjectViewEntityCollectionData.cs
- ConfigurationManager.cs
- IChannel.cs
- OrderByQueryOptionExpression.cs
- WsdlContractConversionContext.cs
- ZipPackagePart.cs
- DownloadProgressEventArgs.cs
- ClipboardProcessor.cs
- UrlAuthFailedErrorFormatter.cs
- PointAnimationUsingKeyFrames.cs
- BinaryOperationBinder.cs
- QilPatternVisitor.cs
- ToolBarTray.cs
- BitStack.cs
- SafeArrayRankMismatchException.cs
- CatalogPartCollection.cs
- HttpCookieCollection.cs
- messageonlyhwndwrapper.cs
- ComponentCommands.cs
- SafeRightsManagementEnvironmentHandle.cs
- FileSystemEventArgs.cs
- RegexBoyerMoore.cs
- OracleCommandBuilder.cs
- SeekStoryboard.cs
- ReadOnlyPropertyMetadata.cs
- TextElementAutomationPeer.cs
- XPathAncestorIterator.cs
- BitmapEffectInput.cs
- TextSchema.cs
- EventLogStatus.cs
- XmlSchemas.cs
- TimersDescriptionAttribute.cs
- XPathDocument.cs
- AnimationException.cs
- DbParameterHelper.cs
- CombinedHttpChannel.cs
- Mapping.cs
- AttachedAnnotationChangedEventArgs.cs
- Win32KeyboardDevice.cs
- SplashScreen.cs
- CollectionsUtil.cs
- LOSFormatter.cs
- PartEditor.cs
- TreeNode.cs
- WindowCollection.cs