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
- AnnotationMap.cs
- ValueTypeIndexerReference.cs
- DbReferenceCollection.cs
- TransformGroup.cs
- DataGridViewRowEventArgs.cs
- StylusPointDescription.cs
- UIElementHelper.cs
- ArgumentException.cs
- LayoutUtils.cs
- AppDomain.cs
- XmlLoader.cs
- SizeConverter.cs
- UnsafeNativeMethods.cs
- StringAnimationBase.cs
- BitmapEffectRenderDataResource.cs
- _IPv6Address.cs
- OdbcUtils.cs
- NumericUpDownAcceleration.cs
- ConstraintCollection.cs
- SafeFileMappingHandle.cs
- AssertUtility.cs
- ResolveMatchesMessageCD1.cs
- TextViewSelectionProcessor.cs
- ControlDesigner.cs
- shaperfactory.cs
- WindowsListViewSubItem.cs
- MultipartContentParser.cs
- SqlDelegatedTransaction.cs
- TrackingProfileSerializer.cs
- CalendarData.cs
- HttpConfigurationSystem.cs
- DetailsViewDeletedEventArgs.cs
- GenericArgumentsUpdater.cs
- ProgressiveCrcCalculatingStream.cs
- SelectManyQueryOperator.cs
- TextWriter.cs
- GeneralTransform3D.cs
- HtmlInputImage.cs
- AmbientValueAttribute.cs
- AdornerHitTestResult.cs
- IntSecurity.cs
- ElementHostAutomationPeer.cs
- DoubleUtil.cs
- ResourceManagerWrapper.cs
- DataControlPagerLinkButton.cs
- TypeUsage.cs
- XmlNodeWriter.cs
- EnumMember.cs
- ToolStripDropTargetManager.cs
- ECDsaCng.cs
- EncodingDataItem.cs
- AppliedDeviceFiltersEditor.cs
- AnonymousIdentificationModule.cs
- PostBackOptions.cs
- DynamicPropertyHolder.cs
- MultiTargetingUtil.cs
- RequestResizeEvent.cs
- InkPresenterAutomationPeer.cs
- RadioButtonFlatAdapter.cs
- MatrixCamera.cs
- FileChangeNotifier.cs
- PhysicalOps.cs
- MetadataItem.cs
- Menu.cs
- FormViewCommandEventArgs.cs
- HandlerBase.cs
- Durable.cs
- RolePrincipal.cs
- GetChildSubtree.cs
- TreeViewImageGenerator.cs
- WebScriptServiceHost.cs
- PerformanceCounterPermission.cs
- PropertyPath.cs
- DocumentOrderQuery.cs
- ObjectDataSourceStatusEventArgs.cs
- SymbolPair.cs
- OuterGlowBitmapEffect.cs
- CodeIdentifier.cs
- GlobalProxySelection.cs
- LifetimeServices.cs
- DataSourceIDConverter.cs
- SqlDeflator.cs
- VirtualPathData.cs
- ShortcutKeysEditor.cs
- documentsequencetextpointer.cs
- PartialCachingControl.cs
- FormViewCommandEventArgs.cs
- TextControl.cs
- DateTimeConverter2.cs
- MethodBody.cs
- PipelineModuleStepContainer.cs
- _OverlappedAsyncResult.cs
- XmlSchemaSimpleTypeUnion.cs
- UserControlCodeDomTreeGenerator.cs
- StateDesigner.LayoutSelectionGlyph.cs
- BCLDebug.cs
- KeyedPriorityQueue.cs
- AddInStore.cs
- PackWebRequestFactory.cs
- SQLMoney.cs