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
- sqlser.cs
- ClientTarget.cs
- GridViewEditEventArgs.cs
- TreeNodeMouseHoverEvent.cs
- DocumentViewerBase.cs
- MLangCodePageEncoding.cs
- XmlSortKeyAccumulator.cs
- DynamicDocumentPaginator.cs
- DynamicValidatorEventArgs.cs
- TypeForwardedToAttribute.cs
- GrammarBuilderBase.cs
- GlobalEventManager.cs
- BaseServiceProvider.cs
- DataBinder.cs
- FormsAuthenticationConfiguration.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- StatusBarPanelClickEvent.cs
- XmlAutoDetectWriter.cs
- XPathNodeIterator.cs
- WebPartCatalogAddVerb.cs
- PlanCompilerUtil.cs
- MessageDecoder.cs
- ListItem.cs
- MimeTypeAttribute.cs
- PolyQuadraticBezierSegment.cs
- TerminateDesigner.cs
- CompilationUtil.cs
- TdsEnums.cs
- SupportsEventValidationAttribute.cs
- InvokeBinder.cs
- AccessedThroughPropertyAttribute.cs
- EntityKeyElement.cs
- AutomationIdentifierGuids.cs
- UriTemplatePathPartiallyEquivalentSet.cs
- TaskFormBase.cs
- ObjectItemCollection.cs
- ControlUtil.cs
- ProgressBarRenderer.cs
- InlinedAggregationOperatorEnumerator.cs
- BaseCodePageEncoding.cs
- CardSpaceException.cs
- graph.cs
- IdentityHolder.cs
- ConcurrentBag.cs
- StringWriter.cs
- CounterSample.cs
- FormViewDeleteEventArgs.cs
- MetaModel.cs
- StylusPointPropertyId.cs
- SpinWait.cs
- DataReaderContainer.cs
- GeometryGroup.cs
- SqlUserDefinedTypeAttribute.cs
- StringFormat.cs
- EndpointNameMessageFilter.cs
- ReadOnlyHierarchicalDataSourceView.cs
- NotFiniteNumberException.cs
- ObjectListDataBindEventArgs.cs
- SafeHandles.cs
- Exception.cs
- SqlErrorCollection.cs
- Latin1Encoding.cs
- TextEffect.cs
- ObjectStateEntryDbDataRecord.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- Point3DIndependentAnimationStorage.cs
- AxisAngleRotation3D.cs
- NamespaceEmitter.cs
- Keyboard.cs
- BufferedStream.cs
- PrintPageEvent.cs
- TextEditorDragDrop.cs
- GeneralTransform.cs
- SerTrace.cs
- DataListItemEventArgs.cs
- QilChoice.cs
- SqlFunctionAttribute.cs
- Underline.cs
- ProfilePropertySettingsCollection.cs
- StatusBarDesigner.cs
- UnmanagedMemoryStreamWrapper.cs
- UserNameSecurityToken.cs
- TreeWalker.cs
- DataControlPagerLinkButton.cs
- GACIdentityPermission.cs
- LocationChangedEventArgs.cs
- ResourcesChangeInfo.cs
- MarkupExtensionSerializer.cs
- DesignBindingEditor.cs
- Win32PrintDialog.cs
- PrintPreviewGraphics.cs
- SkewTransform.cs
- FormsIdentity.cs
- DirectoryObjectSecurity.cs
- IResourceProvider.cs
- XslCompiledTransform.cs
- ProviderConnectionPoint.cs
- StructuredTypeInfo.cs
- SoapHeaderException.cs
- ProgressChangedEventArgs.cs