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
- FrameworkElementFactory.cs
- DataListCommandEventArgs.cs
- SHA256Managed.cs
- GradientSpreadMethodValidation.cs
- BadImageFormatException.cs
- OutputCacheModule.cs
- ManagementOptions.cs
- EngineSiteSapi.cs
- CompositeCollectionView.cs
- FixUpCollection.cs
- ResetableIterator.cs
- RightNameExpirationInfoPair.cs
- GridViewPageEventArgs.cs
- X509Extension.cs
- TextAutomationPeer.cs
- UIElement3D.cs
- OleDbCommand.cs
- SecUtil.cs
- MetadataArtifactLoaderCompositeFile.cs
- TraceSection.cs
- FtpCachePolicyElement.cs
- NumericExpr.cs
- EnvironmentPermission.cs
- Parallel.cs
- SqlDataSourceCustomCommandEditor.cs
- FixUpCollection.cs
- Oid.cs
- HtmlGenericControl.cs
- JsonDataContract.cs
- WebUtility.cs
- HtmlInputButton.cs
- ToolStripRenderEventArgs.cs
- StreamGeometry.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- StreamWriter.cs
- DataContext.cs
- util.cs
- shaper.cs
- SqlInfoMessageEvent.cs
- ActivityDesigner.cs
- ValueHandle.cs
- XamlTreeBuilderBamlRecordWriter.cs
- DataGridRowsPresenter.cs
- RenderOptions.cs
- PersistenceTypeAttribute.cs
- SqlClientPermission.cs
- IPGlobalProperties.cs
- DefaultMemberAttribute.cs
- ELinqQueryState.cs
- HttpBrowserCapabilitiesBase.cs
- UndoUnit.cs
- TextDpi.cs
- TypeSystemProvider.cs
- ConfigUtil.cs
- WebSysDefaultValueAttribute.cs
- UIPermission.cs
- XamlFigureLengthSerializer.cs
- ServiceChannelFactory.cs
- DispatcherSynchronizationContext.cs
- KeyGesture.cs
- State.cs
- WebResourceUtil.cs
- DbMetaDataFactory.cs
- ValueUnavailableException.cs
- ManagedIStream.cs
- HideDisabledControlAdapter.cs
- SystemGatewayIPAddressInformation.cs
- SqlCachedBuffer.cs
- ViewUtilities.cs
- UnionExpr.cs
- UpdateProgress.cs
- ByteStorage.cs
- DesignerAutoFormatCollection.cs
- BasePropertyDescriptor.cs
- ListenerTraceUtility.cs
- EventHandlerService.cs
- ReaderOutput.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- PackageFilter.cs
- SystemDropShadowChrome.cs
- Figure.cs
- _SSPISessionCache.cs
- CrossSiteScriptingValidation.cs
- AsnEncodedData.cs
- StreamInfo.cs
- CodeMethodInvokeExpression.cs
- ServerValidateEventArgs.cs
- ValueUnavailableException.cs
- EventLogLink.cs
- DetailsViewPageEventArgs.cs
- WebExceptionStatus.cs
- AggregationMinMaxHelpers.cs
- XPathAxisIterator.cs
- SortedList.cs
- SmtpSection.cs
- LinearQuaternionKeyFrame.cs
- TypeCollectionDesigner.xaml.cs
- WebPartCancelEventArgs.cs
- VisualTreeHelper.cs
- TextCharacters.cs