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
- CanonicalFontFamilyReference.cs
- ObjectDataProvider.cs
- AgileSafeNativeMemoryHandle.cs
- Point3D.cs
- RegexMatchCollection.cs
- PropertyMap.cs
- ClosableStream.cs
- BookmarkTable.cs
- HttpModule.cs
- ReachPrintTicketSerializerAsync.cs
- BaseResourcesBuildProvider.cs
- MimeMultiPart.cs
- PathSegment.cs
- TimelineClockCollection.cs
- DateTimeEditor.cs
- RuleRefElement.cs
- FormsAuthenticationUser.cs
- FlowLayoutSettings.cs
- StopStoryboard.cs
- InkPresenterAutomationPeer.cs
- SafeBitVector32.cs
- InheritedPropertyDescriptor.cs
- ZipPackage.cs
- SoapRpcMethodAttribute.cs
- wmiprovider.cs
- DocumentXPathNavigator.cs
- XmlSchemaAnnotated.cs
- PersonalizationStateInfo.cs
- TreeNodeMouseHoverEvent.cs
- ZoneButton.cs
- ReferentialConstraint.cs
- QueryableDataSourceView.cs
- ContentIterators.cs
- ThreadExceptionDialog.cs
- ObjectDataSourceSelectingEventArgs.cs
- StringSorter.cs
- TextBoxAutomationPeer.cs
- LedgerEntry.cs
- EntityDataSourceSelectingEventArgs.cs
- FontWeight.cs
- HelpEvent.cs
- CallbackException.cs
- DataReaderContainer.cs
- HybridDictionary.cs
- WindowVisualStateTracker.cs
- Panel.cs
- XdrBuilder.cs
- NumberEdit.cs
- HtmlInputHidden.cs
- WebPartTransformerAttribute.cs
- BufferBuilder.cs
- EdmProviderManifest.cs
- ExpandCollapseProviderWrapper.cs
- ExpressionLink.cs
- TypeContext.cs
- SiteMapNodeItemEventArgs.cs
- BufferModeSettings.cs
- UnsafeNativeMethods.cs
- ListenerAdapter.cs
- BeginEvent.cs
- StringUtil.cs
- BamlTreeNode.cs
- WorkflowRuntimeSection.cs
- DynamicPropertyReader.cs
- TagPrefixAttribute.cs
- LineSegment.cs
- XslCompiledTransform.cs
- RetrieveVirtualItemEventArgs.cs
- followingquery.cs
- HtmlTernaryTree.cs
- SmiRecordBuffer.cs
- XmlEntity.cs
- TagMapCollection.cs
- StreamGeometry.cs
- _HelperAsyncResults.cs
- CodeDesigner.cs
- HMAC.cs
- EntityCommandDefinition.cs
- Transactions.cs
- WindowsToolbarAsMenu.cs
- ListViewPagedDataSource.cs
- AsyncOperationManager.cs
- SingleTagSectionHandler.cs
- XmlResolver.cs
- HandlerFactoryWrapper.cs
- TableRow.cs
- ClientSettingsSection.cs
- MaterialCollection.cs
- FileLogRecord.cs
- WebPartDeleteVerb.cs
- TimeIntervalCollection.cs
- ExceptionUtil.cs
- TreeNode.cs
- OutputBuffer.cs
- AccessedThroughPropertyAttribute.cs
- DataViewSetting.cs
- COM2ExtendedTypeConverter.cs
- PanelDesigner.cs
- ReceiveActivity.cs
- DataGridRelationshipRow.cs