C# Class FSSHTTPandWOPIInspector.FSSHTTPandWOPIInspector

Inheritance: Inspector2
Show file Open project: OfficeDev/Office-Inspectors-for-Fiddler Class Usage Examples

Private Properties

Property Type Description
UpdateView void

Public Methods

Method Description
AddToTab ( TabPage o ) : void

Called by Fiddler to add the FSSHTTPandWOPI inspector tab

AssignSession ( Fiddler.Session oS ) : void

This is called every time this inspector is shown

BytearrayToString ( byte ba ) : string

Concert byte array to hex string

Clear ( ) : void

Method Fiddler calls to clear the display

DisplayObject ( object obj, string RopNameforBinaryStructure ) : void

Display the object in Tree View

EnalbeWOPIAndHTTPHexView ( byte FSSHTTPBBytes ) : void

Enable the WOPIAndHTTPHexView

GetFSSHTTPBBytesForXOP ( string OctetsBinaryString, byte bytesFromHTTP ) : byte[]

Get the byte array of the octets binary in XOP package

GetOctetsBinaryForXOP ( byte bytesFromHTTP ) : string

Get the string of octets binary in XOP package

GetOrder ( ) : int

Method that returns a sorting hint

GetWOPIOperationName ( Fiddler.HTTPHeaders headers, string url ) : WOPIOperations

Get the WOPI operation

IsFSSHTTPBStart ( byte payload ) : bool

Check if the start point is FSSHTTPB bits

ParseFSSHTTPBBytes ( byte FSSHTTPBbytes, TrafficDirection direction ) : object

Parse the FSSHTTPB Bytes.

ParseHTTPPayloadForFSSHTTP ( Fiddler.HTTPHeaders responseHeaders, byte bytesFromHTTP, TrafficDirection direction ) : object

Parse the HTTP payload to FSSHTTP and WOPI message.

ParseHTTPPayloadForWOPI ( Fiddler.HTTPHeaders requestHeaders, Fiddler.HTTPHeaders responseHeaders, string url, byte bytesFromHTTP, string &binaryStructureRopName, TrafficDirection direction ) : object

Parse the HTTP payload to WOPI message.

ScoreForSession ( Fiddler.Session oS ) : int

Called by Fiddler to determine how confident this inspector is that it can decode the data. This is only called when the user hits enter or double- clicks a session. If we score the highest out of the other inspectors, Fiddler will open this inspector's tab and then call AssignSession.

TreeView_AfterSelect ( object sender, TreeViewEventArgs e ) : void

Represents the method, which is used to handle the AfterSelect event of a TreeView.

TryParseFSSHTTPBRequestMessage ( Request Requests, byte bytesFromHTTP ) : void

Parse the HTTP payload to FSSHTTPB Request message.

TryParseFSSHTTPBResponseMessage ( Response Responses, byte bytesFromHTTP ) : void

Parse the HTTP payload to FSSHTTPB Response message.

Private Methods

Method Description
UpdateView ( ) : void

Update the view with parsed and diagnosed data

Method Details

AddToTab() public method

Called by Fiddler to add the FSSHTTPandWOPI inspector tab
public AddToTab ( TabPage o ) : void
o System.Windows.Forms.TabPage The tab control for the inspector
return void

AssignSession() public method

This is called every time this inspector is shown
public AssignSession ( Fiddler.Session oS ) : void
oS Fiddler.Session Session object passed by Fiddler
return void

BytearrayToString() public method

Concert byte array to hex string
public BytearrayToString ( byte ba ) : string
ba byte The byte array used to convert
return string

Clear() public method

Method Fiddler calls to clear the display
public Clear ( ) : void
return void

DisplayObject() public method

Display the object in Tree View
public DisplayObject ( object obj, string RopNameforBinaryStructure ) : void
obj object The object to display
RopNameforBinaryStructure string The string value used to as the name of tree node for object which is bianry value
return void

EnalbeWOPIAndHTTPHexView() public method

Enable the WOPIAndHTTPHexView
public EnalbeWOPIAndHTTPHexView ( byte FSSHTTPBBytes ) : void
FSSHTTPBBytes byte The raw data for FSSHTTPB protocol
return void

GetFSSHTTPBBytesForXOP() public method

Get the byte array of the octets binary in XOP package
public GetFSSHTTPBBytesForXOP ( string OctetsBinaryString, byte bytesFromHTTP ) : byte[]
OctetsBinaryString string string of the octets binary
bytesFromHTTP byte The raw data from HTTP layer
return byte[]

GetOctetsBinaryForXOP() public method

Get the string of octets binary in XOP package
public GetOctetsBinaryForXOP ( byte bytesFromHTTP ) : string
bytesFromHTTP byte The raw data from HTTP layer
return string

GetOrder() public method

Method that returns a sorting hint
public GetOrder ( ) : int
return int

GetWOPIOperationName() public method

Get the WOPI operation
public GetWOPIOperationName ( Fiddler.HTTPHeaders headers, string url ) : WOPIOperations
headers Fiddler.HTTPHeaders Http headers
url string url for a session
return WOPIOperations

IsFSSHTTPBStart() public method

Check if the start point is FSSHTTPB bits
public IsFSSHTTPBStart ( byte payload ) : bool
payload byte
return bool

ParseFSSHTTPBBytes() public method

Parse the FSSHTTPB Bytes.
public ParseFSSHTTPBBytes ( byte FSSHTTPBbytes, TrafficDirection direction ) : object
FSSHTTPBbytes byte The raw date contains FSSHTTPB message.
direction TrafficDirection The direction of the traffic.
return object

ParseHTTPPayloadForFSSHTTP() public method

Parse the HTTP payload to FSSHTTP and WOPI message.
public ParseHTTPPayloadForFSSHTTP ( Fiddler.HTTPHeaders responseHeaders, byte bytesFromHTTP, TrafficDirection direction ) : object
responseHeaders Fiddler.HTTPHeaders The HTTP response header.
bytesFromHTTP byte The raw data from HTTP layer.
direction TrafficDirection The direction of the traffic.
return object

ParseHTTPPayloadForWOPI() public method

Parse the HTTP payload to WOPI message.
public ParseHTTPPayloadForWOPI ( Fiddler.HTTPHeaders requestHeaders, Fiddler.HTTPHeaders responseHeaders, string url, byte bytesFromHTTP, string &binaryStructureRopName, TrafficDirection direction ) : object
requestHeaders Fiddler.HTTPHeaders The HTTP request header.
responseHeaders Fiddler.HTTPHeaders The HTTP response header.
url string url for a HTTP message.
bytesFromHTTP byte The raw data from HTTP layer.
binaryStructureRopName string
direction TrafficDirection The direction of the traffic.
return object

ScoreForSession() public method

Called by Fiddler to determine how confident this inspector is that it can decode the data. This is only called when the user hits enter or double- clicks a session. If we score the highest out of the other inspectors, Fiddler will open this inspector's tab and then call AssignSession.
public ScoreForSession ( Fiddler.Session oS ) : int
oS Fiddler.Session the session object passed by Fiddler
return int

TreeView_AfterSelect() public method

Represents the method, which is used to handle the AfterSelect event of a TreeView.
public TreeView_AfterSelect ( object sender, TreeViewEventArgs e ) : void
sender object The source of the event
e System.Windows.Forms.TreeViewEventArgs A System.Windows.Forms.TreeViewEventArgs that contains the event data.
return void

TryParseFSSHTTPBRequestMessage() public method

Parse the HTTP payload to FSSHTTPB Request message.
public TryParseFSSHTTPBRequestMessage ( Request Requests, byte bytesFromHTTP ) : void
Requests FSSHTTPandWOPIInspector.Parsers.Request Array of Request that is part of a cell storage service request.
bytesFromHTTP byte The raw data from HTTP layer.
return void

TryParseFSSHTTPBResponseMessage() public method

Parse the HTTP payload to FSSHTTPB Response message.
public TryParseFSSHTTPBResponseMessage ( Response Responses, byte bytesFromHTTP ) : void
Responses FSSHTTPandWOPIInspector.Parsers.Response Array of Response element that is part of a cell storage service response.
bytesFromHTTP byte The raw data from HTTP layer.
return void