9.5

Table Of Contents
DescriptionTypes
NameMembers
The type of the response. For example, "text/xml" or
"text/plain."
String
contentType
If the response type is text, this contains the text.
Otherwise, this value is null.
String
textData
If the responseAsURL parameter was set to "true" in the
request, this contains the URL of the response.
Otherwise, this value is null.
String
responseURL
If the response type is binary, this contains the byte
array. Otherwise, this value is null.
binary
streamValue
If the response type is text, this value indicates the
encoding of the text (for example, UTF-8 or ANSI).
String
encodingType
Identifies the server port.String
actualServerPortUsed
Identifies the server.String
actualServerUsed
If the response returned by the server is a set of headers,
this array contains the header response.
String
headers
If the response returned by the server is multipart, this
array contains the multipart response parts.
String
multipartResponse
QRequestContext context = new QRequestContext();
context.setDocumentName("sample.qxp");
Example, object
model
context.setResponseAsURL(true);
JPEGRenderRequest request = new JPEGRenderRequest();
request.setJPEGQuality("4");
context.setRequest(request);
RequestService requestService = new RequestServiceStub();
QContentData response = requestService.processRequest(context);
System.out.println(response.getResponseURL());
QException
Exception class for QuarkXPress Manager.Description
Exception
Type
DescriptionTypes
NameMembers
HTTP response code.String
httpResponseCode
QuarkXPress Server Manager error code.String
managerErrorCode
QuarkXPress Server Manager localized error message.String
managerErrorMessage
QuarkXPress Server error code.String
serverErrorCode
QuarkXPress Server response message.String
serverErrorMessage
QuarkXPress Server extended error message.String
serverExtendedMessage
A GUIDE TO QUARKXPRESS SERVER 9.5 | 49
USING QUARKXPRESS SERVER