8.0

Table Of Contents
QContentData
Description
Response to a Web Services call to QuarkXPress Server.
Type
Web Service Data Object
Members
Name
Type
Description
contentType
String
The type of the response. For example, "text/xml" or
"text/plain."
textData
String
If the response type is text, this contains the text. Otherwise,
this value is null.
responseURL
String
If the "responseAsURL" parameter was set to "true" in the
request, this contains the URL of the response. Otherwise,
this value is null.
streamValue
binary
If the response type is binary, this contains the byte array.
Otherwise, this value is null.
encodingType
String
If the response type is text, this value indicates the encoding
of the text (e.g., UTF-8 or ANSI).
actualServerPortUsed
String
Identifies the server
port.
actualServerUsed
String
Identifies the server.
headers
String
If the response
returned by the server
is headers, this array
contains the header
response.
multipartResponse
String
If the response returned by the server is multipart, this array
contains the multipart response parts returned by the server.
Example, Object
Model
QRequestContext context = new QRequestContext();
context.setDocumentName("sample.qxp");
context.setResponseAsURL(true);
JPEGRenderRequest request = new JPEGRenderRequest();
request.setJPEGQuality("4");
context.setRequest(request);
QManagerSDKSvcServiceLocator serviceLocator = new
QManagerSDKSvcServiceLocator();
QManagerSDKSvc service = serviceLocator.getqxpsmsdk();
QContentData response = service.processRequest(context);
System.out.println(response.getResponseURL());
Page 22