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
- GridView.cs
- LinearGradientBrush.cs
- GeneralTransform3DTo2D.cs
- OraclePermissionAttribute.cs
- FixedSOMContainer.cs
- NameTable.cs
- DefaultBindingPropertyAttribute.cs
- bidPrivateBase.cs
- XamlNamespaceHelper.cs
- listitem.cs
- COMException.cs
- ButtonDesigner.cs
- AuthorizationRule.cs
- ExtensionFile.cs
- SqlCacheDependency.cs
- StrongNamePublicKeyBlob.cs
- EastAsianLunisolarCalendar.cs
- WinFormsSecurity.cs
- ProgressBarRenderer.cs
- AndCondition.cs
- InvalidPropValue.cs
- Point4D.cs
- GenericsNotImplementedException.cs
- HtmlElementErrorEventArgs.cs
- While.cs
- DbExpressionBuilder.cs
- Token.cs
- AuthenticatedStream.cs
- GregorianCalendarHelper.cs
- DataGridViewHeaderCell.cs
- Expander.cs
- odbcmetadatafactory.cs
- BaseProcessor.cs
- PersonalizationProviderHelper.cs
- DESCryptoServiceProvider.cs
- MaterialGroup.cs
- ReaderWriterLockWrapper.cs
- SerializationException.cs
- LogicalTreeHelper.cs
- DataBoundControlHelper.cs
- SqlTopReducer.cs
- storepermission.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- ObjectDataSource.cs
- DataGridDetailsPresenterAutomationPeer.cs
- SequenceDesignerAccessibleObject.cs
- SystemException.cs
- PriorityItem.cs
- ModelItemDictionaryImpl.cs
- XsdDateTime.cs
- DeclarativeConditionsCollection.cs
- DataGridCaption.cs
- XPathAncestorQuery.cs
- Duration.cs
- XmlDocument.cs
- EditingCommands.cs
- WebHttpBehavior.cs
- HttpCachePolicyElement.cs
- Model3DGroup.cs
- UnsafeNativeMethods.cs
- TrackingMemoryStream.cs
- OracleCommandSet.cs
- FlagsAttribute.cs
- StringArrayConverter.cs
- TemplateInstanceAttribute.cs
- ETagAttribute.cs
- XPathScanner.cs
- MD5CryptoServiceProvider.cs
- TypeUsage.cs
- AssociationProvider.cs
- PartialArray.cs
- OracleColumn.cs
- RadioButtonRenderer.cs
- ReadOnlyDictionary.cs
- CompileLiteralTextParser.cs
- BitmapSizeOptions.cs
- PropVariant.cs
- MaterialGroup.cs
- ListViewItem.cs
- BuilderPropertyEntry.cs
- TimeSpanFormat.cs
- TextServicesContext.cs
- ProviderBase.cs
- SqlFacetAttribute.cs
- Block.cs
- EmptyStringExpandableObjectConverter.cs
- TemplateParser.cs
- GeometryGroup.cs
- SmiEventSink_Default.cs
- EntityAdapter.cs
- TextRunTypographyProperties.cs
- DbFunctionCommandTree.cs
- StylusEditingBehavior.cs
- ImageListUtils.cs
- LiteralText.cs
- InternalPermissions.cs
- TreeNodeCollection.cs
- RemotingConfigParser.cs
- X509CertificateStore.cs
- SQLInt16Storage.cs