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
- LinkClickEvent.cs
- CSharpCodeProvider.cs
- PrimitiveCodeDomSerializer.cs
- ButtonBaseAutomationPeer.cs
- MemberInfoSerializationHolder.cs
- CustomTypeDescriptor.cs
- safemediahandle.cs
- SqlDuplicator.cs
- PrePostDescendentsWalker.cs
- DBCommandBuilder.cs
- uribuilder.cs
- ContextInformation.cs
- SessionState.cs
- LongValidatorAttribute.cs
- RuleSettingsCollection.cs
- WaitingCursor.cs
- _UncName.cs
- ConfigurationErrorsException.cs
- XmlSchemaGroupRef.cs
- QueryExpr.cs
- ListItemsCollectionEditor.cs
- AdRotator.cs
- ReferencedAssembly.cs
- DataGridRelationshipRow.cs
- CriticalExceptions.cs
- ReadOnlyAttribute.cs
- SevenBitStream.cs
- _Events.cs
- XsdValidatingReader.cs
- CompositeFontInfo.cs
- GridView.cs
- Connector.cs
- DataListItemCollection.cs
- PhysicalAddress.cs
- StylusPointProperty.cs
- SecurityContext.cs
- HwndKeyboardInputProvider.cs
- NullableIntAverageAggregationOperator.cs
- SspiNegotiationTokenAuthenticator.cs
- BitmapMetadataEnumerator.cs
- RowVisual.cs
- NavigatorOutput.cs
- CopyOnWriteList.cs
- ResXBuildProvider.cs
- PersonalizationProviderHelper.cs
- StrokeNodeOperations2.cs
- BodyGlyph.cs
- OracleParameterBinding.cs
- MembershipValidatePasswordEventArgs.cs
- DataGridItemEventArgs.cs
- DataGridCommandEventArgs.cs
- IpcChannelHelper.cs
- TypeTypeConverter.cs
- ClockController.cs
- WpfGeneratedKnownTypes.cs
- BridgeDataRecord.cs
- FileNotFoundException.cs
- EdgeProfileValidation.cs
- JsonFaultDetail.cs
- TaiwanLunisolarCalendar.cs
- Assert.cs
- CommandID.cs
- ipaddressinformationcollection.cs
- ProxyWebPartConnectionCollection.cs
- SqlNotificationRequest.cs
- TextBoxView.cs
- SettingsBindableAttribute.cs
- Scene3D.cs
- NativeWindow.cs
- TcpPortSharing.cs
- MemoryStream.cs
- MessageRpc.cs
- DeclarativeExpressionConditionDeclaration.cs
- smtppermission.cs
- TimelineClockCollection.cs
- EntityWithKeyStrategy.cs
- RowUpdatedEventArgs.cs
- RepeatBehaviorConverter.cs
- messageonlyhwndwrapper.cs
- FileDetails.cs
- DataContext.cs
- WindowsClaimSet.cs
- ResourceDescriptionAttribute.cs
- FileSecurity.cs
- FileChangesMonitor.cs
- AccessedThroughPropertyAttribute.cs
- sqlinternaltransaction.cs
- SplashScreen.cs
- VarRemapper.cs
- StringDictionaryWithComparer.cs
- SafeArrayRankMismatchException.cs
- WinFormsSecurity.cs
- CellTreeNode.cs
- ListViewGroupConverter.cs
- ToolStripKeyboardHandlingService.cs
- ExpressionsCollectionConverter.cs
- GetPageNumberCompletedEventArgs.cs
- WindowsTokenRoleProvider.cs
- BookmarkCallbackWrapper.cs
- SortQueryOperator.cs