2020

Table Of Contents
USING QUARKXPRESS SERVER
QRequest
RequestParameters
NameValueParam
object model
rc.responseAsURL = false; JPEGRenderRequest jpegRequest = new
JPEGRenderRequest(); rc.request = jpegRequest; RequestService svc = new
RequestService(); QContextData response = svc.processRequest(rc);
Description
Base class for all request objects (such as PDFRenderRequest). All request
objects share some common data members, which are described below.
Type Web service data object
Members
Name Types Description
request QRequest
QuarkXPress Server
request that includes
instances of request
objects chained
together.
Description
Generic class for executing any request and for adding dynamic properties
to a request.
Type Web service data object
Members
Name Type Description
requestNamespace String
Namespace of the
request (for example,
jpeg).
params NameValueParam[]
Parameter array for
the specified request
(for example,
jpegquality).
Additional
comments
You can use this class to send any request for which a specific class does
not exist. When this request exists in the chain, its namespace is
concatenated with the namespaces of other requests. That means the
namespace provided here can be null. The parameters of this class can be
used to parameterize a request being sent to the server.
Example, object
model
QRequestContext rc = new QRequestContext(); RequestParameters request
= new RequestParameters(); request.setRequestNamespace(“jpeg”);
rc.setRequest = request; NameValueParam p1 = new NameValueParam();
p1.setParamName = “jpegquality”; p1.setTextValue = “4”;
request.setParams(new NameValueParam[]{p1});
Description
Generic class for adding dynamic properties to a request. This class is
specifically for requests that take a box name/id as the parameter name
and the box content as the parameter value.
A GUIDE TO QUARKXPRESS SERVER 2020 | 45