Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- DateTimeConstantAttribute.cs
- DecimalAverageAggregationOperator.cs
- StringDictionary.cs
- FilterFactory.cs
- ExpandableObjectConverter.cs
- oledbmetadatacollectionnames.cs
- ClientSideQueueItem.cs
- ReservationCollection.cs
- TrackingStringDictionary.cs
- BooleanStorage.cs
- PingReply.cs
- _NegoStream.cs
- PriorityRange.cs
- NavigationService.cs
- DnsPermission.cs
- PartialClassGenerationTask.cs
- EditorZoneBase.cs
- BaseHashHelper.cs
- ClientFormsAuthenticationCredentials.cs
- DynamicPropertyHolder.cs
- MergablePropertyAttribute.cs
- DesignerActionVerbItem.cs
- UniqueConstraint.cs
- ProcessThread.cs
- BinaryExpression.cs
- ReadOnlyCollection.cs
- Int64.cs
- TreeViewAutomationPeer.cs
- MetaData.cs
- ObjectStateManager.cs
- EntityModelBuildProvider.cs
- HashCryptoHandle.cs
- SystemResourceHost.cs
- RelationshipType.cs
- XhtmlBasicObjectListAdapter.cs
- ServiceBuildProvider.cs
- WorkflowPrinting.cs
- OdbcRowUpdatingEvent.cs
- Metafile.cs
- PluralizationServiceUtil.cs
- OdbcErrorCollection.cs
- SourceCollection.cs
- DesignSurface.cs
- TransformDescriptor.cs
- SessionStateUtil.cs
- SiteMapNodeItem.cs
- FontUnitConverter.cs
- EncryptedKeyIdentifierClause.cs
- PropertyCollection.cs
- WebPartConnectionsCancelVerb.cs
- TableRow.cs
- X509CertificateStore.cs
- RuleRef.cs
- MasterPage.cs
- DetailsViewRow.cs
- DataSpaceManager.cs
- TransactionTable.cs
- CqlWriter.cs
- AsymmetricAlgorithm.cs
- MouseButton.cs
- ReadWriteSpinLock.cs
- PassportAuthenticationEventArgs.cs
- CallContext.cs
- RepeaterItemCollection.cs
- XmlSchemaNotation.cs
- DocumentReference.cs
- login.cs
- DataControlField.cs
- SchemaTypeEmitter.cs
- ToolBarPanel.cs
- DomNameTable.cs
- SafeCoTaskMem.cs
- EditorBrowsableAttribute.cs
- Stylesheet.cs
- OrderByBuilder.cs
- StateRuntime.cs
- DoubleLinkList.cs
- HMACMD5.cs
- WindowsNonControl.cs
- ElementAtQueryOperator.cs
- _SslState.cs
- WindowsGraphicsCacheManager.cs
- XmlElement.cs
- Encoder.cs
- SQLBinary.cs
- AssociationSetMetadata.cs
- PresentationAppDomainManager.cs
- XPathNavigatorReader.cs
- SqlPersonalizationProvider.cs
- DbConvert.cs
- SqlMethods.cs
- DbReferenceCollection.cs
- TransformProviderWrapper.cs
- ReflectionServiceProvider.cs
- XmlSchema.cs
- ProbeDuplexCD1AsyncResult.cs
- WpfWebRequestHelper.cs
- ReadOnlyAttribute.cs
- LogWriteRestartAreaState.cs
- CollectionAdapters.cs