Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / 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. ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StubHelpers.cs
- PartialTrustVisibleAssembly.cs
- MdiWindowListStrip.cs
- ResourceDescriptionAttribute.cs
- PrintPreviewGraphics.cs
- DataSourceUtil.cs
- InfiniteTimeSpanConverter.cs
- AlphabeticalEnumConverter.cs
- SafeNativeMemoryHandle.cs
- DeflateEmulationStream.cs
- ImpersonateTokenRef.cs
- SessionEndingCancelEventArgs.cs
- CodeStatementCollection.cs
- NativeMethods.cs
- CommentEmitter.cs
- OptimalTextSource.cs
- IPAddressCollection.cs
- PersianCalendar.cs
- CodeTypeDeclarationCollection.cs
- ServiceX509SecurityTokenProvider.cs
- XmlChildNodes.cs
- FixedSOMLineRanges.cs
- EncoderExceptionFallback.cs
- ThousandthOfEmRealPoints.cs
- EventDescriptor.cs
- Script.cs
- Query.cs
- KeyProperty.cs
- BufferedStream.cs
- XmlSchemaChoice.cs
- StorageRoot.cs
- DataGridLengthConverter.cs
- ConstraintConverter.cs
- ByteStreamGeometryContext.cs
- WeakReadOnlyCollection.cs
- PseudoWebRequest.cs
- DataSourceCacheDurationConverter.cs
- XmlSchemaSet.cs
- SafeArrayTypeMismatchException.cs
- Visual3D.cs
- ReadOnlyDictionary.cs
- SqlMethodAttribute.cs
- XPathPatternParser.cs
- CodeNamespaceImportCollection.cs
- DES.cs
- panel.cs
- DetailsViewModeEventArgs.cs
- BamlLocalizabilityResolver.cs
- EastAsianLunisolarCalendar.cs
- StandardCommands.cs
- webeventbuffer.cs
- SizeLimitedCache.cs
- VisualStyleTypesAndProperties.cs
- DesignerForm.cs
- FontInfo.cs
- UnicodeEncoding.cs
- InputProviderSite.cs
- SortedSet.cs
- Translator.cs
- MessageQueueException.cs
- OrderedEnumerableRowCollection.cs
- CompilationLock.cs
- AdornerPresentationContext.cs
- DataGridViewLinkCell.cs
- BitmapFrameEncode.cs
- ResourceDisplayNameAttribute.cs
- NetSectionGroup.cs
- DesignerDataView.cs
- AssemblyAttributesGoHere.cs
- TrustLevel.cs
- TreeNodeBindingCollection.cs
- SiteMapSection.cs
- JpegBitmapEncoder.cs
- DependencyPropertyAttribute.cs
- StreamingContext.cs
- ArcSegment.cs
- SerializationException.cs
- PathTooLongException.cs
- URLString.cs
- XmlSchemaAny.cs
- EmptyQuery.cs
- DataGridViewToolTip.cs
- Substitution.cs
- StrokeNodeEnumerator.cs
- SafeViewOfFileHandle.cs
- UIElement3D.cs
- ReadWriteSpinLock.cs
- ButtonBaseAdapter.cs
- SendKeys.cs
- RangeExpression.cs
- MemoryFailPoint.cs
- ListBoxItemWrapperAutomationPeer.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- LinqDataSourceContextData.cs
- FontStretches.cs
- RadialGradientBrush.cs
- WmpBitmapDecoder.cs
- CompilationUtil.cs
- DataContractJsonSerializer.cs
- ComboBoxRenderer.cs