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
- DesignerDataRelationship.cs
- XPathParser.cs
- ReadOnlyHierarchicalDataSourceView.cs
- GeneralTransform3D.cs
- FactoryGenerator.cs
- PropertyConverter.cs
- SHA384.cs
- NewItemsContextMenuStrip.cs
- FrameworkReadOnlyPropertyMetadata.cs
- DBCommandBuilder.cs
- PropertyGridEditorPart.cs
- DBSqlParserTable.cs
- ObjectResult.cs
- Preprocessor.cs
- designeractionbehavior.cs
- DragStartedEventArgs.cs
- ContainsRowNumberChecker.cs
- NonceToken.cs
- SqlCommandSet.cs
- CrossAppDomainChannel.cs
- ReflectionUtil.cs
- OdbcUtils.cs
- SignerInfo.cs
- QueryStringParameter.cs
- SafeProcessHandle.cs
- CalendarAutomationPeer.cs
- DefaultPropertyAttribute.cs
- WSHttpBindingBase.cs
- documentation.cs
- DynamicVirtualDiscoSearcher.cs
- GeometryConverter.cs
- altserialization.cs
- PathFigureCollectionConverter.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- SafeNativeMethods.cs
- CodeVariableDeclarationStatement.cs
- UICuesEvent.cs
- Grid.cs
- VScrollBar.cs
- RemotingException.cs
- cryptoapiTransform.cs
- CaretElement.cs
- WindowsAuthenticationModule.cs
- TransportListener.cs
- XmlDataSourceDesigner.cs
- ModelMemberCollection.cs
- InputBindingCollection.cs
- PropertyTabAttribute.cs
- Matrix.cs
- TransformedBitmap.cs
- RegistryExceptionHelper.cs
- Sentence.cs
- EndpointIdentityExtension.cs
- RecipientInfo.cs
- SqlUnionizer.cs
- RijndaelManaged.cs
- ImageField.cs
- ReaderWriterLockWrapper.cs
- FontUnitConverter.cs
- BitmapEffectInputData.cs
- WindowsPrincipal.cs
- DiscoveryMessageSequence.cs
- IgnoreFileBuildProvider.cs
- ValidationEventArgs.cs
- WmlLiteralTextAdapter.cs
- WebPartManagerInternals.cs
- FamilyMap.cs
- DrawItemEvent.cs
- HtmlInputFile.cs
- DrawingContextDrawingContextWalker.cs
- CodeGenerator.cs
- DataGridRow.cs
- _DisconnectOverlappedAsyncResult.cs
- XmlSequenceWriter.cs
- WebPartDescriptionCollection.cs
- DbFunctionCommandTree.cs
- SrgsItemList.cs
- MouseOverProperty.cs
- PopupControlService.cs
- LinkedResource.cs
- ConfigPathUtility.cs
- SimpleBitVector32.cs
- OdbcCommandBuilder.cs
- HtmlTextArea.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- TextWriter.cs
- ComboBoxDesigner.cs
- DesignerDeviceConfig.cs
- ViewStateModeByIdAttribute.cs
- SrgsNameValueTag.cs
- PrimitiveSchema.cs
- DragDeltaEventArgs.cs
- ModelMemberCollection.cs
- MailMessage.cs
- FileChangesMonitor.cs
- documentsequencetextpointer.cs
- LogAppendAsyncResult.cs
- FamilyCollection.cs
- CommandValueSerializer.cs
- MetafileHeaderWmf.cs