9.2

Table Of Contents
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
String docName = "notexisting.qxp";
try {
Example,
object model
QRequestContext ctx = getRequestContext(docName);
QRequest request = getJPEGRequest();
ctx.setRequest(ctx);
QContentData response = getService().processRequest(ctx);
System.out.println(response.getResponseURL());
} catch (QException ex) {
// QuarkXPress Manager threw an QException and it is not
// a runtime exception. QException object will be returned.
System.out.println(ex.getServerErrorCode());
}
QXP Server Manager
The following topics are for people who want to enhance QuarkXPress Server Manager or
integrate it with other software.
Please refer to http://localhost:8090/qxpsmdocs/apidocs/index.html for manager
API documentation. (Note that the port number used to retrieve the API documentation
QXP SERVER 9.2 WEB INTEGRATION GUIDE | 27
GETTING STARTED