Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- DataControlFieldCell.cs
- FontWeight.cs
- ListViewUpdateEventArgs.cs
- ValueProviderWrapper.cs
- SmtpNetworkElement.cs
- SqlIdentifier.cs
- EmptyEnumerable.cs
- mediapermission.cs
- ConnectionsZone.cs
- EntityFunctions.cs
- MethodResolver.cs
- DynamicAttribute.cs
- DropShadowEffect.cs
- StickyNoteHelper.cs
- Attributes.cs
- Transform.cs
- SimpleHandlerBuildProvider.cs
- SizeChangedInfo.cs
- TokenizerHelper.cs
- SignerInfo.cs
- SoapSchemaMember.cs
- DependencyObjectType.cs
- EditingMode.cs
- XsltInput.cs
- WindowsComboBox.cs
- StyleCollectionEditor.cs
- SymbolMethod.cs
- ConnectionPoolManager.cs
- RemotingAttributes.cs
- TypeForwardedToAttribute.cs
- RIPEMD160.cs
- CryptoProvider.cs
- HttpCapabilitiesBase.cs
- Matrix3D.cs
- Point4D.cs
- DoubleUtil.cs
- Number.cs
- KeyGestureValueSerializer.cs
- ParameterBuilder.cs
- ToolTipAutomationPeer.cs
- ConfigurationValues.cs
- GridItemCollection.cs
- AdornerPresentationContext.cs
- EventLogHandle.cs
- Identity.cs
- GCHandleCookieTable.cs
- UpDownEvent.cs
- PageOutputQuality.cs
- UnhandledExceptionEventArgs.cs
- XmlDigitalSignatureProcessor.cs
- Random.cs
- HttpWebRequestElement.cs
- TimeSpanConverter.cs
- TextSpanModifier.cs
- CachedCompositeFamily.cs
- DesignerCalendarAdapter.cs
- EdmComplexPropertyAttribute.cs
- AddInEnvironment.cs
- Operator.cs
- RandomNumberGenerator.cs
- ScalarOps.cs
- shaperfactoryquerycachekey.cs
- SQlBooleanStorage.cs
- CodeMemberEvent.cs
- DescriptionAttribute.cs
- CompositeControl.cs
- TextBoxRenderer.cs
- TypeForwardedToAttribute.cs
- UriTemplateCompoundPathSegment.cs
- PageStatePersister.cs
- ModuleConfigurationInfo.cs
- BuildResult.cs
- VersionPair.cs
- OrderedEnumerableRowCollection.cs
- EmptyControlCollection.cs
- _StreamFramer.cs
- BufferedGraphicsManager.cs
- TimeoutConverter.cs
- Registry.cs
- FormParameter.cs
- HttpCookiesSection.cs
- LongCountAggregationOperator.cs
- OpacityConverter.cs
- RadioButtonBaseAdapter.cs
- HideDisabledControlAdapter.cs
- EntityDataSourceChangingEventArgs.cs
- Evaluator.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- PeerMessageDispatcher.cs
- RootDesignerSerializerAttribute.cs
- PropertyDescriptorCollection.cs
- SqlInfoMessageEvent.cs
- TaiwanCalendar.cs
- SoapWriter.cs
- TypeNameConverter.cs
- KnownTypeHelper.cs
- DataTransferEventArgs.cs
- RenamedEventArgs.cs
- XamlGridLengthSerializer.cs
- InlineUIContainer.cs