Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- ColorConvertedBitmapExtension.cs
- ParserHooks.cs
- AuthorizationRuleCollection.cs
- SafeFileMappingHandle.cs
- DtrList.cs
- ConstraintConverter.cs
- RadioButtonBaseAdapter.cs
- AppDomainProtocolHandler.cs
- ImageList.cs
- FormViewInsertedEventArgs.cs
- OleServicesContext.cs
- FixedSOMImage.cs
- TabItemWrapperAutomationPeer.cs
- AnnouncementInnerClient11.cs
- ApplicationFileParser.cs
- FrameworkContentElement.cs
- TreeNodeBindingCollection.cs
- QuaternionAnimation.cs
- PageCatalogPart.cs
- ClientConfigurationHost.cs
- XmlDictionaryReaderQuotas.cs
- WindowsTooltip.cs
- StylusPlugin.cs
- TextDecorationCollectionConverter.cs
- HitTestWithGeometryDrawingContextWalker.cs
- TransactionProtocolConverter.cs
- _NegotiateClient.cs
- MissingFieldException.cs
- SoapExtensionTypeElementCollection.cs
- XmlSerializationReader.cs
- DictionarySectionHandler.cs
- GAC.cs
- ModifiableIteratorCollection.cs
- CommandField.cs
- StatusBarPanelClickEvent.cs
- ToggleButton.cs
- DataViewListener.cs
- LocalsItemDescription.cs
- SuppressMessageAttribute.cs
- CompareValidator.cs
- GregorianCalendarHelper.cs
- GenericUI.cs
- ConnectionInterfaceCollection.cs
- Activation.cs
- ProvideValueServiceProvider.cs
- ArcSegment.cs
- SqlUserDefinedAggregateAttribute.cs
- XmlQueryContext.cs
- CheckBoxRenderer.cs
- TraceEventCache.cs
- MarginsConverter.cs
- XmlNotation.cs
- IndicShape.cs
- SettingsAttributeDictionary.cs
- WebPartConnectionsCancelEventArgs.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- CatalogZoneBase.cs
- ClientSideQueueItem.cs
- SourceItem.cs
- SourceFileInfo.cs
- DataSourceSelectArguments.cs
- DocumentGrid.cs
- TcpPortSharing.cs
- HttpGetProtocolReflector.cs
- EditorZone.cs
- FileDialog_Vista.cs
- ClientTargetSection.cs
- SmiMetaData.cs
- VirtualDirectoryMappingCollection.cs
- BitmapEffectInputData.cs
- odbcmetadatafactory.cs
- Viewport3DVisual.cs
- FlowLayoutPanel.cs
- webclient.cs
- SmiConnection.cs
- Math.cs
- Activity.cs
- XmlTextReaderImplHelpers.cs
- DateTimeFormat.cs
- translator.cs
- mactripleDES.cs
- ActivitiesCollection.cs
- XmlConvert.cs
- CustomWebEventKey.cs
- Mutex.cs
- StrongNameUtility.cs
- Delay.cs
- ServiceDurableInstance.cs
- ImageButton.cs
- ConfigXmlText.cs
- NamespaceDisplay.xaml.cs
- Utils.cs
- AnnotationResourceCollection.cs
- XMLUtil.cs
- DiagnosticsConfigurationHandler.cs
- ReceiveActivityValidator.cs
- StringUtil.cs
- WrappedReader.cs
- EpmSyndicationContentDeSerializer.cs
- RectConverter.cs