Exemple #1
0
 /**
  * Setter for service session
  *
  * @param ServiceSession The element service session
  * @since V2.0
  */
 public void SetServiceSession(ServiceSession ServiceSession)
 {
     this.ServiceSession = ServiceSession;
 }
 /**
  * Constructor with fields
  *
  * @param Content         Request/Response data content (plain text).
  * @param ContentType     The request/response content type (MIME TYPE).
  * @param ContentEncoding Encoding of the binary payload - by default assumed to be UTF8.
  * @param ContentLength   The length in bytes for the Content field.
  * @param ServiceHeaders  The serviceHeaders array (name,value pairs) to be included on the I/O service request.
  * @param ServiceSession  Information about the session
  * @param StatusCode      HTTP Status code of the response.
  * @since V2.0
  */
 public ServiceResponse(string content, string contentType, IServiceContentEncoding contentEncoding, int contentLength, ServiceHeader[] serviceHeaders, ServiceSession serviceSession, int statusCode) : base()
 {
     this.Content         = Content;
     this.ContentType     = ContentType;
     this.ContentEncoding = ContentEncoding;
     this.ContentLength   = ContentLength;
     this.ServiceHeaders  = ServiceHeaders;
     this.ServiceSession  = ServiceSession;
     this.StatusCode      = StatusCode;
 }