Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Web / System / Web / Services / Protocols / HttpGetServerProtocol.cs / 1305376 / HttpGetServerProtocol.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.Services.Protocols {
internal class HttpGetServerProtocolFactory : ServerProtocolFactory {
protected override ServerProtocol CreateIfRequestCompatible(HttpRequest request){
if (request.PathInfo.Length < 2)
return null;
if (request.HttpMethod != "GET")
// MethodNotAllowed = 405,
return new UnsupportedRequestProtocol(405);
return new HttpGetServerProtocol();
}
}
internal class HttpGetServerProtocol : HttpServerProtocol {
internal HttpGetServerProtocol() : base(false) { }
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ModuleConfigurationInfo.cs
- InheritedPropertyChangedEventArgs.cs
- SelectionChangedEventArgs.cs
- OdbcDataReader.cs
- BoundColumn.cs
- TraceHandler.cs
- DebugView.cs
- ToolZone.cs
- XPathDocumentNavigator.cs
- Utilities.cs
- CapabilitiesPattern.cs
- BreakSafeBase.cs
- UInt16.cs
- PrintPreviewGraphics.cs
- InputDevice.cs
- BinarySerializer.cs
- WebSysDescriptionAttribute.cs
- XMLUtil.cs
- ContextBase.cs
- OAVariantLib.cs
- MediaElementAutomationPeer.cs
- TypeUtil.cs
- Rect.cs
- FormViewUpdatedEventArgs.cs
- CompiledWorkflowDefinitionContext.cs
- PathSegmentCollection.cs
- TextSelection.cs
- SamlDelegatingWriter.cs
- DecoderFallbackWithFailureFlag.cs
- VectorAnimationUsingKeyFrames.cs
- WebBrowserNavigatedEventHandler.cs
- DetailsViewDeletedEventArgs.cs
- Animatable.cs
- ResXDataNode.cs
- SqlTransaction.cs
- ContextProperty.cs
- Utils.cs
- SwitchLevelAttribute.cs
- ToolStripMenuItem.cs
- PartitionResolver.cs
- TableChangeProcessor.cs
- OrthographicCamera.cs
- TcpAppDomainProtocolHandler.cs
- Substitution.cs
- LocatorPartList.cs
- ConstraintStruct.cs
- IPGlobalProperties.cs
- Animatable.cs
- SafeProcessHandle.cs
- DataGridItem.cs
- ResourceWriter.cs
- ExceptionCollection.cs
- AuthenticationModuleElement.cs
- WindowsTitleBar.cs
- LocalFileSettingsProvider.cs
- SpnEndpointIdentity.cs
- WS2007FederationHttpBindingElement.cs
- DialogBaseForm.cs
- WebPartZoneCollection.cs
- FormView.cs
- DBCSCodePageEncoding.cs
- AutomationEvent.cs
- DataStreamFromComStream.cs
- DesignerActionPanel.cs
- SafeFileMappingHandle.cs
- _FtpDataStream.cs
- URLMembershipCondition.cs
- CreateInstanceBinder.cs
- LayoutTable.cs
- Int16AnimationUsingKeyFrames.cs
- EntityStoreSchemaGenerator.cs
- PropertyMap.cs
- LabelExpression.cs
- AsyncSerializedWorker.cs
- XmlSchemaType.cs
- InfoCardRequestException.cs
- Int32Converter.cs
- TableChangeProcessor.cs
- PageTextBox.cs
- StringFormat.cs
- FormsAuthenticationEventArgs.cs
- GridViewUpdateEventArgs.cs
- MultiPropertyDescriptorGridEntry.cs
- NavigationFailedEventArgs.cs
- MemberMaps.cs
- PropertyToken.cs
- WebDisplayNameAttribute.cs
- FileDialog_Vista_Interop.cs
- DictationGrammar.cs
- RectangleHotSpot.cs
- TableCellAutomationPeer.cs
- DetailsViewDeleteEventArgs.cs
- EntityTransaction.cs
- TransformValueSerializer.cs
- FunctionNode.cs
- CodeConstructor.cs
- NetworkInterface.cs
- ExpressionParser.cs
- ActivityDesigner.cs
- BrowsableAttribute.cs