C# Class TableauServerRequestBase, TabMigrate

Base class on top of which requests to Tableau Server are based
ファイルを表示 Open project: tableau/TabMigrate Class Usage Examples

Protected Methods

Method Description
AssertTemplateFullyReplaced ( string text ) : void

Debugging function: Allows us to test that all of our content was replaced

GetWebResponseAsText ( WebResponse response ) : string

Gets the web response as a XML document

GetWebResponseAsXml ( WebResponse response ) : XmlDocument

Gets the web response as a XML document

SendPostContents ( WebRequest request, string bodyText ) : void

Sends the body text up to the server

SendPutContents ( WebRequest request, string bodyText ) : void

Sends the body text up to the server, using the PUT method

Private Methods

Method Description
SendHttpRequestContents_Inner ( WebRequest request, string bodyText, string httpMethod = "POST" ) : void

Sends the body text up to the server

Method Details

AssertTemplateFullyReplaced() protected method

Debugging function: Allows us to test that all of our content was replaced
protected AssertTemplateFullyReplaced ( string text ) : void
text string
return void

GetWebResponseAsText() protected static method

Gets the web response as a XML document
protected static GetWebResponseAsText ( WebResponse response ) : string
response WebResponse
return string

GetWebResponseAsXml() protected static method

Gets the web response as a XML document
protected static GetWebResponseAsXml ( WebResponse response ) : XmlDocument
response WebResponse
return System.Xml.XmlDocument

SendPostContents() protected static method

Sends the body text up to the server
protected static SendPostContents ( WebRequest request, string bodyText ) : void
request WebRequest
bodyText string
return void

SendPutContents() protected static method

Sends the body text up to the server, using the PUT method
protected static SendPutContents ( WebRequest request, string bodyText ) : void
request WebRequest
bodyText string
return void