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
- ReadOnlyDataSource.cs
- XmlText.cs
- TableDetailsCollection.cs
- ZoneMembershipCondition.cs
- StructuralCache.cs
- SingleStorage.cs
- ImageClickEventArgs.cs
- CompilerWrapper.cs
- PtsPage.cs
- elementinformation.cs
- IOException.cs
- ValuePattern.cs
- securitycriticaldataClass.cs
- HtmlControl.cs
- ServiceContractViewControl.cs
- AppDomainShutdownMonitor.cs
- WizardDesigner.cs
- PathFigureCollectionConverter.cs
- PeerInvitationResponse.cs
- ImageMapEventArgs.cs
- SqlDataSourceFilteringEventArgs.cs
- PropertyRecord.cs
- RuntimeResourceSet.cs
- ScrollEvent.cs
- RulePatternOps.cs
- WorkflowWebService.cs
- TableChangeProcessor.cs
- TextCollapsingProperties.cs
- CqlParserHelpers.cs
- ClonableStack.cs
- Perspective.cs
- SQLRoleProvider.cs
- ServiceHostFactory.cs
- RangeValuePatternIdentifiers.cs
- ValidationEventArgs.cs
- KnownIds.cs
- ContextMenuStripGroupCollection.cs
- ConfigXmlAttribute.cs
- SamlConditions.cs
- PublisherIdentityPermission.cs
- newinstructionaction.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- ExtensionSurface.cs
- Pkcs7Recipient.cs
- UserPreferenceChangedEventArgs.cs
- PenThreadPool.cs
- PointLight.cs
- SecurityPolicySection.cs
- TemplateControlParser.cs
- SpecialFolderEnumConverter.cs
- SHA512Managed.cs
- NamedPipeActivation.cs
- QilPatternVisitor.cs
- EncodingDataItem.cs
- MenuCommandsChangedEventArgs.cs
- WindowsAuthenticationEventArgs.cs
- UrlPath.cs
- AssemblyBuilderData.cs
- Component.cs
- StreamReader.cs
- LongValidatorAttribute.cs
- UrlMappingsSection.cs
- OleDbErrorCollection.cs
- util.cs
- Graphics.cs
- DataBoundControl.cs
- ObjectDataSourceDisposingEventArgs.cs
- TagPrefixCollection.cs
- HttpHostedTransportConfiguration.cs
- ConsumerConnectionPointCollection.cs
- TargetPerspective.cs
- ProxyWebPartConnectionCollection.cs
- GroupQuery.cs
- BaseDataBoundControl.cs
- ScriptResourceAttribute.cs
- FontWeightConverter.cs
- PolygonHotSpot.cs
- TemplatePagerField.cs
- FixedDocumentPaginator.cs
- XPathSelectionIterator.cs
- Page.cs
- DtrList.cs
- UdpDuplexChannel.cs
- SrgsSemanticInterpretationTag.cs
- MatrixValueSerializer.cs
- HMACSHA384.cs
- StateItem.cs
- ProcessModelInfo.cs
- RemoveStoryboard.cs
- ConstNode.cs
- EventLog.cs
- Size.cs
- ProviderConnectionPointCollection.cs
- HwndPanningFeedback.cs
- DbDataSourceEnumerator.cs
- Evaluator.cs
- ExpressionBuilder.cs
- OdbcConnectionOpen.cs
- FixedSOMImage.cs
- LinqToSqlWrapper.cs