Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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; } } } }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
- PasswordBox.cs
- ErasingStroke.cs
- CqlLexerHelpers.cs
- figurelength.cs
- HMACSHA512.cs
- UserPreferenceChangedEventArgs.cs
- SevenBitStream.cs
- ListDictionaryInternal.cs
- XmlWriterSettings.cs
- CodeSnippetTypeMember.cs
- StrongNameHelpers.cs
- ScriptResourceHandler.cs
- WebBrowserUriTypeConverter.cs
- ListChangedEventArgs.cs
- ObjectParameter.cs
- UnsafeNativeMethods.cs
- DataObjectEventArgs.cs
- UnsafeNetInfoNativeMethods.cs
- DockingAttribute.cs
- odbcmetadatacollectionnames.cs
- CacheChildrenQuery.cs
- BaseHashHelper.cs
- NameValueCollection.cs
- OpenFileDialog.cs
- Pen.cs
- WebEventTraceProvider.cs
- MessageEncoderFactory.cs
- ChangeTracker.cs
- DrawingBrush.cs
- XPathSingletonIterator.cs
- GlyphTypeface.cs
- ToolStripLocationCancelEventArgs.cs
- SecurityKeyEntropyMode.cs
- ServiceDescription.cs
- ItemCheckedEvent.cs
- SqlHelper.cs
- PolyQuadraticBezierSegment.cs
- PersonalizationAdministration.cs
- CompressionTransform.cs
- TextEndOfParagraph.cs
- DocComment.cs
- ContentValidator.cs
- CryptoProvider.cs
- BulletedListEventArgs.cs
- OleDbDataAdapter.cs
- Parser.cs
- ReadWriteObjectLock.cs
- ListViewPagedDataSource.cs
- LocatorGroup.cs
- HtmlHistory.cs
- SmiRequestExecutor.cs
- HtmlCommandAdapter.cs
- ReturnType.cs
- RelatedView.cs
- TransactionScope.cs
- SafeNativeMethods.cs
- EnumConverter.cs
- FlowDocument.cs
- FileVersionInfo.cs
- XmlMapping.cs
- Stack.cs
- ConfigurationManagerHelperFactory.cs
- HMACSHA256.cs
- CommittableTransaction.cs
- CompositeFontParser.cs
- MsdtcWrapper.cs
- SemanticBasicElement.cs
- MobileResource.cs
- SizeIndependentAnimationStorage.cs
- SetterBaseCollection.cs
- TextRangeEdit.cs
- _WebProxyDataBuilder.cs
- SignedXml.cs
- EncoderExceptionFallback.cs
- XmlArrayItemAttributes.cs
- KeyConverter.cs
- Part.cs
- DataConnectionHelper.cs
- ExpressionParser.cs
- MediaElementAutomationPeer.cs
- Menu.cs
- MediaElementAutomationPeer.cs
- DataGridViewComboBoxColumn.cs
- Compensation.cs
- ThemeInfoAttribute.cs
- RadioButtonFlatAdapter.cs
- ReachUIElementCollectionSerializerAsync.cs
- IgnoreFileBuildProvider.cs
- LinkedResourceCollection.cs
- ThemeInfoAttribute.cs
- EventToken.cs
- MinMaxParagraphWidth.cs
- ProtocolsConfiguration.cs
- WebEventTraceProvider.cs
- RegexCode.cs
- PriorityRange.cs
- BaseParaClient.cs
- TaskHelper.cs
- PagedDataSource.cs
- HierarchicalDataTemplate.cs