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
- SeekableReadStream.cs
- SaveFileDialog.cs
- ExternalFile.cs
- GridItemPattern.cs
- WebRequest.cs
- XmlProcessingInstruction.cs
- QueryParameter.cs
- HoistedLocals.cs
- unsafenativemethodsother.cs
- CfgParser.cs
- SchemaElementLookUpTableEnumerator.cs
- DataGridViewColumnStateChangedEventArgs.cs
- CompoundFileStreamReference.cs
- AuthStoreRoleProvider.cs
- _SslStream.cs
- BoolExpressionVisitors.cs
- AssemblyAttributes.cs
- ListViewInsertEventArgs.cs
- RootProjectionNode.cs
- SharedDp.cs
- UnknownWrapper.cs
- BindingUtils.cs
- Condition.cs
- TextContainerChangedEventArgs.cs
- XmlUtf8RawTextWriter.cs
- AssemblyBuilderData.cs
- SignatureDescription.cs
- RenamedEventArgs.cs
- SqlCacheDependency.cs
- login.cs
- SpeakInfo.cs
- TextInfo.cs
- Converter.cs
- ChoiceConverter.cs
- TTSEvent.cs
- WindowsListView.cs
- CodeTypeDelegate.cs
- ModuleBuilderData.cs
- UIElementParaClient.cs
- ApplicationSecurityManager.cs
- FontInfo.cs
- SqlReferenceCollection.cs
- EdmPropertyAttribute.cs
- WindowsListViewItemCheckBox.cs
- CodeRemoveEventStatement.cs
- VisualTreeUtils.cs
- WmlListAdapter.cs
- FocusManager.cs
- TextTreeTextNode.cs
- DrawingImage.cs
- WinFormsSecurity.cs
- ExpressionList.cs
- DelegatingStream.cs
- SapiInterop.cs
- EmbeddedMailObject.cs
- SessionSwitchEventArgs.cs
- XsltConvert.cs
- GPStream.cs
- GetPageCompletedEventArgs.cs
- BoundsDrawingContextWalker.cs
- DesignerView.xaml.cs
- BamlRecordHelper.cs
- DurationConverter.cs
- MediaPlayer.cs
- ReferenceAssemblyAttribute.cs
- SubMenuStyle.cs
- RtfControlWordInfo.cs
- ArgumentNullException.cs
- SocketElement.cs
- Point3D.cs
- CodeDirectoryCompiler.cs
- ReadWriteSpinLock.cs
- InputLanguageEventArgs.cs
- Root.cs
- DataSetMappper.cs
- DoubleAverageAggregationOperator.cs
- _BasicClient.cs
- ProgressBar.cs
- EventWaitHandle.cs
- SystemDropShadowChrome.cs
- XmlLanguage.cs
- MergablePropertyAttribute.cs
- InternalUserCancelledException.cs
- LicFileLicenseProvider.cs
- CodeMemberField.cs
- LinearGradientBrush.cs
- FixedTextPointer.cs
- FrameworkElementFactory.cs
- FormViewDeleteEventArgs.cs
- SingleKeyFrameCollection.cs
- ValidationEventArgs.cs
- SelectiveScrollingGrid.cs
- SourceFileBuildProvider.cs
- IntPtr.cs
- BookmarkScopeManager.cs
- KnownIds.cs
- SoapProtocolImporter.cs
- SuppressMergeCheckAttribute.cs
- SapiGrammar.cs
- DifferencingCollection.cs