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
- TransformCollection.cs
- EncodingTable.cs
- DrawingContextWalker.cs
- ByteStreamMessageUtility.cs
- PersonalizationProviderCollection.cs
- ScriptReferenceEventArgs.cs
- UIElementHelper.cs
- GlyphsSerializer.cs
- ConfigurationFileMap.cs
- ParagraphResult.cs
- AssertFilter.cs
- LayoutExceptionEventArgs.cs
- BinaryOperationBinder.cs
- itemelement.cs
- XslAst.cs
- GB18030Encoding.cs
- WebConvert.cs
- SocketElement.cs
- wgx_render.cs
- UnicodeEncoding.cs
- CachedTypeface.cs
- Int32.cs
- FontFamilyIdentifier.cs
- SQLDateTimeStorage.cs
- ExtendedPropertyDescriptor.cs
- HttpDateParse.cs
- MobileControlsSection.cs
- MenuAdapter.cs
- PersonalizationStateInfo.cs
- MsmqIntegrationElement.cs
- HexParser.cs
- DrawingAttributesDefaultValueFactory.cs
- CodeAccessSecurityEngine.cs
- PopupControlService.cs
- ProcessManager.cs
- JavaScriptSerializer.cs
- EnumerableRowCollection.cs
- WaitHandleCannotBeOpenedException.cs
- ClockController.cs
- InputProviderSite.cs
- WinEventHandler.cs
- GlyphTypeface.cs
- CodeBlockBuilder.cs
- WSSecurityJan2004.cs
- BamlLocalizabilityResolver.cs
- SoapAttributeOverrides.cs
- VirtualizingStackPanel.cs
- ResourceExpressionBuilder.cs
- CssStyleCollection.cs
- CredentialCache.cs
- CodeVariableDeclarationStatement.cs
- TextServicesManager.cs
- QueueAccessMode.cs
- PackageDigitalSignature.cs
- WebControlAdapter.cs
- CheckedListBox.cs
- ComponentCommands.cs
- MethodExpr.cs
- WithParamAction.cs
- GridViewCancelEditEventArgs.cs
- DiscoveryInnerClientAdhocCD1.cs
- Configuration.cs
- ObjectDataSourceMethodEditor.cs
- DictionaryBase.cs
- ActionMessageFilterTable.cs
- Transform.cs
- XpsFilter.cs
- SqlLiftIndependentRowExpressions.cs
- SRef.cs
- BreadCrumbTextConverter.cs
- CollectionEditorDialog.cs
- DbProviderFactoriesConfigurationHandler.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- ComponentCache.cs
- TimelineCollection.cs
- TogglePattern.cs
- PathData.cs
- WebBrowserNavigatingEventHandler.cs
- WebPartDisplayModeCancelEventArgs.cs
- ReferenceEqualityComparer.cs
- RawStylusInputCustomData.cs
- TypeGenericEnumerableViewSchema.cs
- TextWriterEngine.cs
- HealthMonitoringSection.cs
- QilXmlWriter.cs
- FormattedText.cs
- AddInPipelineAttributes.cs
- Menu.cs
- GridViewRowPresenter.cs
- SelectionPatternIdentifiers.cs
- ReferencedAssemblyResolver.cs
- CollectionContainer.cs
- TreeWalker.cs
- HostSecurityManager.cs
- SymLanguageVendor.cs
- ResourceDefaultValueAttribute.cs
- PersonalizationStateInfoCollection.cs
- AQNBuilder.cs
- Recipient.cs
- MailWebEventProvider.cs