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
- SignatureHelper.cs
- FixedPosition.cs
- MembershipValidatePasswordEventArgs.cs
- XmlNamedNodeMap.cs
- BinaryEditor.cs
- RenderDataDrawingContext.cs
- ArraySortHelper.cs
- _NegotiateClient.cs
- SoapInteropTypes.cs
- XamlReaderHelper.cs
- EtwTrace.cs
- HMACSHA256.cs
- OdbcHandle.cs
- WindowsTokenRoleProvider.cs
- _ChunkParse.cs
- FixedDocument.cs
- InstanceKeyView.cs
- DependencyObjectPropertyDescriptor.cs
- SqlConnection.cs
- SourceInterpreter.cs
- BrowserDefinitionCollection.cs
- CollectionBase.cs
- RequestCachePolicy.cs
- MetadataUtil.cs
- TextTreeUndo.cs
- TimerExtension.cs
- HttpChannelHelpers.cs
- ProxyWebPartManager.cs
- FormsAuthenticationUser.cs
- Reference.cs
- OletxCommittableTransaction.cs
- DataServiceExpressionVisitor.cs
- ObjectIDGenerator.cs
- CompositeControl.cs
- ContextMenu.cs
- IEnumerable.cs
- ThicknessAnimationUsingKeyFrames.cs
- XmlDocument.cs
- BooleanProjectedSlot.cs
- PocoPropertyAccessorStrategy.cs
- ResourceSetExpression.cs
- BindToObject.cs
- EntityConnectionStringBuilder.cs
- WebPartTransformerAttribute.cs
- Tokenizer.cs
- EntityDesignerBuildProvider.cs
- CustomLineCap.cs
- HelloOperationCD1AsyncResult.cs
- basecomparevalidator.cs
- HotSpotCollection.cs
- AsymmetricSecurityBindingElement.cs
- TypeHelpers.cs
- Popup.cs
- ViewBox.cs
- SchemaTableColumn.cs
- ListItemCollection.cs
- SecurityCriticalDataForSet.cs
- CompensatableSequenceActivity.cs
- Button.cs
- WindowsProgressbar.cs
- SelectionItemProviderWrapper.cs
- Exceptions.cs
- IndicCharClassifier.cs
- BulletedList.cs
- SafeFileMapViewHandle.cs
- MessageQueueKey.cs
- StatusBarAutomationPeer.cs
- StrokeDescriptor.cs
- DbSourceCommand.cs
- RotateTransform.cs
- SignatureDescription.cs
- ControlBuilderAttribute.cs
- DataGridSortCommandEventArgs.cs
- ListViewGroupItemCollection.cs
- FormViewRow.cs
- MILUtilities.cs
- SchemaImporterExtensionElement.cs
- XmlPreloadedResolver.cs
- SqlDataSourceQueryEditor.cs
- shaperfactoryquerycachekey.cs
- ProfileService.cs
- DataGridTablesFactory.cs
- TransformProviderWrapper.cs
- SqlEnums.cs
- GregorianCalendarHelper.cs
- MessageHeaderT.cs
- SimpleTypeResolver.cs
- NameValueFileSectionHandler.cs
- MarshalByRefObject.cs
- PermissionListSet.cs
- dtdvalidator.cs
- DetailsViewDeletedEventArgs.cs
- TextReturnReader.cs
- DataGridTable.cs
- AutomationAttributeInfo.cs
- FormViewInsertedEventArgs.cs
- Grammar.cs
- OneToOneMappingSerializer.cs
- BitmapDownload.cs
- ConnectionPoint.cs