Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- HtmlElementEventArgs.cs
- ClientBuildManagerCallback.cs
- PersonalizationProviderHelper.cs
- SqlReorderer.cs
- HistoryEventArgs.cs
- UpdatePanelTrigger.cs
- CodeTypeMember.cs
- ExpressionStringBuilder.cs
- unitconverter.cs
- HyperLinkStyle.cs
- PropertySourceInfo.cs
- ProviderCommandInfoUtils.cs
- EllipseGeometry.cs
- ViewLoader.cs
- AsymmetricKeyExchangeDeformatter.cs
- WebContext.cs
- DBAsyncResult.cs
- FontWeights.cs
- DBNull.cs
- FileRecordSequenceHelper.cs
- TypeReference.cs
- ModelTreeEnumerator.cs
- WsdlParser.cs
- TypeConverter.cs
- XamlSerializationHelper.cs
- ShellProvider.cs
- TransformerConfigurationWizardBase.cs
- DetailsViewModeEventArgs.cs
- ConnectionsZoneDesigner.cs
- SystemFonts.cs
- XamlPathDataSerializer.cs
- SeverityFilter.cs
- ConditionCollection.cs
- DefaultValidator.cs
- DataBoundControlHelper.cs
- ColumnMap.cs
- IImplicitResourceProvider.cs
- TableColumn.cs
- NavigationService.cs
- COM2FontConverter.cs
- LicFileLicenseProvider.cs
- GridViewRowEventArgs.cs
- OutOfMemoryException.cs
- MessageVersion.cs
- XmlSchemaObjectTable.cs
- WSSecurityOneDotZeroReceiveSecurityHeader.cs
- HttpContextBase.cs
- WebSysDisplayNameAttribute.cs
- ThrowHelper.cs
- QuotedPrintableStream.cs
- XmlTextReaderImplHelpers.cs
- DragDropManager.cs
- DataTableClearEvent.cs
- Marshal.cs
- TypeConverters.cs
- UpdateProgress.cs
- AnnotationAdorner.cs
- GregorianCalendarHelper.cs
- CompareInfo.cs
- FormViewUpdatedEventArgs.cs
- NamedPipeAppDomainProtocolHandler.cs
- MenuItemCollectionEditor.cs
- WebSysDefaultValueAttribute.cs
- DataSetMappper.cs
- TextServicesDisplayAttribute.cs
- EncryptedReference.cs
- WebRequest.cs
- NamespaceCollection.cs
- TypedTableBase.cs
- Cursor.cs
- Documentation.cs
- EntityWrapper.cs
- FileDialogCustomPlace.cs
- Misc.cs
- CompilationUnit.cs
- CollectionViewGroupInternal.cs
- XmlSchemaAny.cs
- AppDomainUnloadedException.cs
- HtmlTableRow.cs
- SiteMapNodeItemEventArgs.cs
- XmlTypeMapping.cs
- MimeTypeAttribute.cs
- SearchForVirtualItemEventArgs.cs
- VerticalAlignConverter.cs
- RegistrationServices.cs
- UriParserTemplates.cs
- ElasticEase.cs
- RowToParametersTransformer.cs
- DrawingCollection.cs
- QueryInterceptorAttribute.cs
- DodSequenceMerge.cs
- AutoResizedEvent.cs
- Mappings.cs
- FormsAuthenticationUserCollection.cs
- DPTypeDescriptorContext.cs
- PropertyChangeTracker.cs
- SchemaElementDecl.cs
- basevalidator.cs
- PriorityQueue.cs
- ToolStripRenderEventArgs.cs