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
- VisualBrush.cs
- ISessionStateStore.cs
- SHA512Managed.cs
- FormViewPagerRow.cs
- ViewGenerator.cs
- CodeSnippetCompileUnit.cs
- TableCellsCollectionEditor.cs
- SqlRewriteScalarSubqueries.cs
- SqlDataSourceSelectingEventArgs.cs
- SQLInt64Storage.cs
- DeferredReference.cs
- SqlTransaction.cs
- PersonalizablePropertyEntry.cs
- RectAnimation.cs
- ToolStripRendererSwitcher.cs
- XmlSchemaType.cs
- SQLInt32.cs
- DocumentEventArgs.cs
- ReplacementText.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- ListSortDescription.cs
- XhtmlBasicLinkAdapter.cs
- ToolStripItemEventArgs.cs
- UpdatePanelTriggerCollection.cs
- ImageClickEventArgs.cs
- SqlRowUpdatedEvent.cs
- SelectionUIHandler.cs
- ListViewItem.cs
- ScriptRegistrationManager.cs
- InternalCompensate.cs
- Component.cs
- TagElement.cs
- InputLangChangeEvent.cs
- TypeContext.cs
- SecurityManager.cs
- ContentFileHelper.cs
- SessionPageStateSection.cs
- CopyOfAction.cs
- CollectionConverter.cs
- RepeaterItemCollection.cs
- ScriptServiceAttribute.cs
- WebConfigManager.cs
- Size3DConverter.cs
- OracleCommandSet.cs
- DataGridViewCellEventArgs.cs
- DependencyPropertyKey.cs
- SevenBitStream.cs
- AttachedPropertyBrowsableAttribute.cs
- TransactionManager.cs
- IsolatedStorageFilePermission.cs
- CustomValidator.cs
- FormsAuthenticationTicket.cs
- DataView.cs
- NavigationPropertyEmitter.cs
- ContainerUtilities.cs
- SiteMapNodeItemEventArgs.cs
- MergeLocalizationDirectives.cs
- WeakHashtable.cs
- PresentationAppDomainManager.cs
- DescendantBaseQuery.cs
- UniqueIdentifierService.cs
- UIServiceHelper.cs
- PermissionListSet.cs
- DesignerExtenders.cs
- SimpleWebHandlerParser.cs
- Queue.cs
- DesignDataSource.cs
- DummyDataSource.cs
- ConfigXmlAttribute.cs
- DataGridTextBox.cs
- BuiltInPermissionSets.cs
- EntityConnection.cs
- ProxyGenerationError.cs
- List.cs
- DBNull.cs
- Wildcard.cs
- PageFunction.cs
- TextEffectCollection.cs
- RtfControls.cs
- CornerRadius.cs
- RepeaterItemCollection.cs
- FactoryId.cs
- PopOutPanel.cs
- NestedContainer.cs
- SortKey.cs
- FixedSchema.cs
- PriorityRange.cs
- NoPersistProperty.cs
- ModelEditingScope.cs
- LogicalExpr.cs
- ThreadStaticAttribute.cs
- DescendentsWalkerBase.cs
- KnownTypeAttribute.cs
- WebServiceHandlerFactory.cs
- SignatureHelper.cs
- SelectionRange.cs
- StaticFileHandler.cs
- NativeMethods.cs
- GrammarBuilderRuleRef.cs
- CmsInterop.cs