The Connector Responses"

This website contains links to software which is either no longer maintained or will be supported only until the end of 2019 (CKFinder 2). For the latest documentation about current CKSource projects, including software like CKEditor 4/CKEditor 5, CKFinder 3, Cloud Services, Letters, Accessibility Checker, please visit the new documentation website.

If you look for an information about very old versions of CKEditor, FCKeditor and CKFinder check also the CKEditor forum, which was closed in 2015. If not, please head to StackOverflow for support.

(Created page with '{{CKFinder_SSI_Warning}}  == The Connector Responses == All Connector responses have the same base XML structure, like this: <pre><?xml version="1.0" encoding="utf-8"&n…')
 
 
Line 6: Line 6:
 
<pre>&lt;?xml version="1.0" encoding="utf-8"&nbsp;?&gt;
 
<pre>&lt;?xml version="1.0" encoding="utf-8"&nbsp;?&gt;
 
  &lt;Connector resourceType=" RequestedResourceType"&gt;
 
  &lt;Connector resourceType=" RequestedResourceType"&gt;
  &lt;CurrentFolder path="CurrentFolderPath" url="CurrentFolderUrl" acl="CompitedACL" /&gt;
+
  &lt;CurrentFolder path="CurrentFolderPath" url="CurrentFolderUrl" acl="ComputedACL" /&gt;
 
  &lt;Error number="ErrorNumber" text="CustomErrorMessage" /&gt;
 
  &lt;Error number="ErrorNumber" text="CustomErrorMessage" /&gt;
 
  &lt;!-- Here goes all specific command data --&gt;
 
  &lt;!-- Here goes all specific command data --&gt;

Latest revision as of 20:57, 14 May 2010

Note: This information is intented for programmers interested in modifying the CKFinder core.
If you are interested in installing/configuring CFKinder, please take a look at the Developer's Guide.
 

The Connector Responses

All Connector responses have the same base XML structure, like this:

<?xml version="1.0" encoding="utf-8" ?>
 <Connector resourceType=" RequestedResourceType">
 <CurrentFolder path="CurrentFolderPath" url="CurrentFolderUrl" acl="ComputedACL" />
 <Error number="ErrorNumber" text="CustomErrorMessage" />
 <!-- Here goes all specific command data -->
</Connector>

Some important things must be considered when building the response:

  • The response encoding must be set to "text/xml".
  • The "Cache-Control" HTTP header must be set to "no-cache". This is needed because the browsers usually cache the requests for XML files and this is not wanted in this case.
  • The Path and the URL must always start and finish with a slash (/).
This page was last edited on 14 May 2010, at 20:57.