10.2.1

Table Of Contents
http://localhost:8080/setprefs?CacheSize=200
Example GET
URL
EMailPreferences emailPrefs = new EMailPreferences();
emailPrefs.emailFrom = "from@email.com";
Example, object
model
emailPrefs.emailTo = "to@email.com";
emailPrefs.smtpPort = "25";
emailPrefs.smtpServerIP = "SMTPServerIP";
Preferences prefs = new Preferences();
prefs.setEmailPreferences(emailPrefs);
// Create the service and call setPreferences method
RequestService svc = new RequestService();
svc.setPreferences("ServerName", "ServerPort", "Username", "Password",
prefs);
If a user name and password have been set in the Server Configuration dialog box, the browser
requests that user name and password when you submit a setprefs parameter request.
Notes
General preferences
The /getprefs handler lets clients remotely retrieve an XML representation of the
current QuarkXPress Server preferences, as described below.
The /setprefs handler lets clients remotely control QuarkXPress Server preferences.
For example,
http://<servername>:<port>/setprefs?AddConnectionFilter=action=allow;
ipaddr=206.195.80.80;mask=255.255.255.1;pos=0 permits connection filters
and specifies the IP address and the subnet mask of the connection.
DescriptionTypeAttribute
Specifies the memory cache size from 1MB to 1024MB.integer
CacheSize
Specifies the document root directory.string
DocumentRootFolder
Specifies whether to include timing information (such as
processing time and opening time) in the transaction log.
Boolean
LogTiming
Causes QuarkXPress Server to close projects that are loaded
into cache from the document pool after rendering them.
Boolean
ForceServedDocumentsClosed
Specifies whether to store disk-based projects in a
memory-resident cache.
Boolean
AllowMemoryCaching
Sets the default. Valid values include PNG, PDF, EPS, PSCR,
QXPD, RAW, RLER, and JPEG.
string
DefaultRenderType
Specifies whether to log any project problems.Boolean
LogDocProblems
Setrendererprefs
The setrendererprefs request handler lets you set rendering preferences. To use
this request handler, issue a getrendererprefs request, determine the name of the
tag that needs to be modified, and then submit a setrendererprefs request with
the using the name of this tag. For example, set color TIFF and gray TIFF display
preferences, you would first submit a getrendererprefs request to the server, then
update these settings and submit a setrendererprefs request to the server, like so:
http://server:port/setrendererprefs?modify=<QXPSRENDERERPREFERENCES>
<DISPLAY><ColorTIFFs>8-bit</ColorTIFFs><GrayTIFFs>16
160 | A GUIDE TO QUARKXPRESS SERVER 10.2.1
USING QUARKXPRESS SERVER