com.TCPRequest methods

Methods of the com.TCPRequest class.

Table 1. Class methods of com.TCPRequest
Name Description
com.TCPRequest.Create(
   url STRING )
  RETURNING result com.TCPRequest
Creates a new TCP request object.
Table 2. Object methods of com.TCPRequest
Name Description
setTimeOut(
   seconds INTEGER )
Defines the time out for read/write operations.
setConnectionTimeOut(
   seconds INTEGER )
Defines the connection time out.
setMaximumResponseLength(
   length INTEGER )
Defines the time out for read/write operations.
doRequest()
Performs a TCP request.
doXmlRequest(
   document xml.DomDocument )
Persforms a request with a DOM document.
doTextRequest(
   data STRING )
Persforms a request with a string.
beginXmlRequest()
  RETURNING writer xml.StaxWriter
Starts a streaming XML request.
endXmlRequest(
  writer xml.StaxWriter )
Terminates a streaming TCP request.
getResponse()
  RETURNING response com.TCPResponse
Returns the response after performing a TCP request.
getAsyncResponse()
  RETURNING response com.TCPResponse
Returns the response after performing a TCP request, asynchronously.