You can subscribe to this list here.
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(22) |
Nov
(85) |
Dec
(20) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2010 |
Jan
(47) |
Feb
(127) |
Mar
(268) |
Apr
(78) |
May
(47) |
Jun
(38) |
Jul
(131) |
Aug
(221) |
Sep
(187) |
Oct
(54) |
Nov
(111) |
Dec
(84) |
2011 |
Jan
(152) |
Feb
(106) |
Mar
(94) |
Apr
(90) |
May
(53) |
Jun
(20) |
Jul
(24) |
Aug
(37) |
Sep
(32) |
Oct
(70) |
Nov
(22) |
Dec
(15) |
2012 |
Jan
(33) |
Feb
(110) |
Mar
(24) |
Apr
(1) |
May
(11) |
Jun
(8) |
Jul
(12) |
Aug
(37) |
Sep
(39) |
Oct
(81) |
Nov
(38) |
Dec
(50) |
2013 |
Jan
(23) |
Feb
(53) |
Mar
(23) |
Apr
(5) |
May
(19) |
Jun
(16) |
Jul
(16) |
Aug
(9) |
Sep
(21) |
Oct
(1) |
Nov
(2) |
Dec
(8) |
2014 |
Jan
(16) |
Feb
(6) |
Mar
(27) |
Apr
(1) |
May
(10) |
Jun
(1) |
Jul
(4) |
Aug
(10) |
Sep
(19) |
Oct
(22) |
Nov
(4) |
Dec
(6) |
2015 |
Jan
(3) |
Feb
(6) |
Mar
(9) |
Apr
|
May
(11) |
Jun
(23) |
Jul
(14) |
Aug
(10) |
Sep
(10) |
Oct
(9) |
Nov
(18) |
Dec
(4) |
2016 |
Jan
(5) |
Feb
(5) |
Mar
|
Apr
(2) |
May
(15) |
Jun
(2) |
Jul
(8) |
Aug
(2) |
Sep
(6) |
Oct
|
Nov
|
Dec
|
2017 |
Jan
(2) |
Feb
(12) |
Mar
(22) |
Apr
(6) |
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
(5) |
Oct
(2) |
Nov
|
Dec
|
2018 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(5) |
Jul
(3) |
Aug
|
Sep
(7) |
Oct
(19) |
Nov
|
Dec
|
2021 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Dmitriy S. <sha...@gm...> - 2010-05-27 16:52:46
|
On Thu, 2010-05-27 at 20:06 +0400, Evgeny Gazdovsky wrote: > like for unregestiring need access to every query context... It should be simple, all you need is to change configuration@util. Well, we a talking about two different things: 1. dynamically import; 2. preregistered modules (like util or xmldb) are you talking about dynamic import? -- Cheers, Dmitriy Shabanov |
From: Thomas W. <tho...@gm...> - 2010-05-27 16:15:09
|
> like for unregestiring need access to every query context... And may be enumerating all modules imported in a .xql and .xqm file. Thomas |
From: Evgeny G. <gaz...@gm...> - 2010-05-27 16:06:33
|
like for unregestiring need access to every query context... |
From: Dannes W. <da...@ex...> - 2010-05-27 15:50:27
|
Hi, On Thu, May 27, 2010 at 5:26 PM, Evgeny Gazdovsky <gaz...@gm...> wrote: > I want to release the function system:register-module($qname, $path) > for registering modules at runtime without restarting eXist. > Your suggestions? Well it is just a part of the whole story. If you want to be able to register it this way then..... you must also be able to unregister it as well. And that might be exciting to do...... cheers Dannes -- eXist-db Native XML Database - http://exist-db.org Join us on linked-in: http://www.linkedin.com/groups?gid=35624 |
From: Evgeny G. <gaz...@gm...> - 2010-05-27 15:27:06
|
Hello! I want to release the function system:register-module($qname, $path) for registering modules at runtime without restarting eXist. Your suggestions? -- Evgeny |
From: Thomas Mo <tm...@cm...> - 2010-05-26 05:58:47
|
Hi, I am having problem starting exist-db as a stand-alone server on HTTPS port 8488. What I did was edit the eXist/server.xml file: - commented out the default line "<listener protocol="http" port="8088"/>" - uncomment the HTTPS configuration: <listener protocol="https" port="8488"> <param name="keystore" value="E:/eXist/tools/jetty/etc/demokeystore"/> </listener> - build a demo keystore by running $EXIST_HOME/build.sh jetty-keygen - start exist using server.bat But I am getting the following exceptions: 26 May 2010 15:46:45,593 [main] WARN (SslListener.java [newServerSocket]:320) - EXCEPTION java.lang.NullPointerException at org.mortbay.http.SslListener.createFactory(SslListener.java:268) at org.mortbay.http.SslListener.newServerSocket(SslListener.java:290) at org.mortbay.util.ThreadedServer.open(ThreadedServer.java:477) at org.mortbay.util.ThreadedServer.start(ThreadedServer.java:503) at org.mortbay.http.SocketListener.start(SocketListener.java:204) at org.mortbay.http.HttpServer.doStart(HttpServer.java:716) at org.mortbay.util.Container.start(Container.java:72) at org.exist.StandaloneServer.startHttpServer(StandaloneServer.java:385) at org.exist.StandaloneServer.run(StandaloneServer.java:183) at org.exist.StandaloneServer.main(StandaloneServer.java:596) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.exist.start.Main.invokeMain(Main.java:128) at org.exist.start.Main.run(Main.java:407) at org.exist.start.Main.main(Main.java:59) 26 May 2010 15:46:45,593 [main] WARN (ThreadedServer.java [start]:518) - Failed to start: SslListener0@0.0.0.0:8488 26 May 2010 15:46:45,593 [main] INFO (SocketListener.java [start]:205) - Started SocketListener on 0.0.0.0:8088 An exception occurred while launching the server: Multiple exceptions org.mortbay.util.MultiException[java.io.IOException: Could not create JsseListener: java.lang.NullPointerException] at org.mortbay.http.HttpServer.doStart(HttpServer.java:686) at org.mortbay.util.Container.start(Container.java:72) at org.exist.StandaloneServer.startHttpServer(StandaloneServer.java:385) at org.exist.StandaloneServer.run(StandaloneServer.java:183) at org.exist.StandaloneServer.main(StandaloneServer.java:596) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.exist.start.Main.invokeMain(Main.java:128) at org.exist.start.Main.run(Main.java:407) at org.exist.start.Main.main(Main.java:59) java.io.IOException: Could not create JsseListener: java.lang.NullPointerException at org.mortbay.http.SslListener.newServerSocket(SslListener.java:321) at org.mortbay.util.ThreadedServer.open(ThreadedServer.java:477) at org.mortbay.util.ThreadedServer.start(ThreadedServer.java:503) at org.mortbay.http.SocketListener.start(SocketListener.java:204) at org.mortbay.http.HttpServer.doStart(HttpServer.java:716) at org.mortbay.util.Container.start(Container.java:72) at org.exist.StandaloneServer.startHttpServer(StandaloneServer.java:385) at org.exist.StandaloneServer.run(StandaloneServer.java:183) at org.exist.StandaloneServer.main(StandaloneServer.java:596) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.exist.start.Main.invokeMain(Main.java:128) at org.exist.start.Main.run(Main.java:407) at org.exist.start.Main.main(Main.java:59) java.io.IOException: Could not create JsseListener: java.lang.NullPointerException at org.mortbay.http.SslListener.newServerSocket(SslListener.java:321) at org.mortbay.util.ThreadedServer.open(ThreadedServer.java:477) at org.mortbay.util.ThreadedServer.start(ThreadedServer.java:503) at org.mortbay.http.SocketListener.start(SocketListener.java:204) at org.mortbay.http.HttpServer.doStart(HttpServer.java:716) at org.mortbay.util.Container.start(Container.java:72) at org.exist.StandaloneServer.startHttpServer(StandaloneServer.java:385) at org.exist.StandaloneServer.run(StandaloneServer.java:183) at org.exist.StandaloneServer.main(StandaloneServer.java:596) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.exist.start.Main.invokeMain(Main.java:128) at org.exist.start.Main.run(Main.java:407) at org.exist.start.Main.main(Main.java:59) Any suggestion? Does exist stand-alone supports HTTPS? Thanks, Thomas |
From: Dmitriy S. <sha...@gm...> - 2010-05-19 16:16:59
|
Hi, Check exist.log file, it should give you more information. This one telling that exist can't be started for some reason. -- Cheers, Dmitriy Shabanov On Wed, 2010-05-19 at 14:59 +1000, Thomas Mo wrote: > Hi there, > > > I am new to exist-db and I am trying to configure exist-db to support > LDAP. I am running exist in the following environment: > - stand-alone mode by calling exist/bin/server.bat > - windows XP > > > I have looked at the exist LDAP security Manager document > "http://exist-db.org/ldap-security.html", but I could not make it to > work. Below is what I have tried: > - Placed the following security element as a child of db-connection > into file eXist/conf.xml > <security class="org.exist.security.LDAPSecurityManager" /> > - Specify the properties "security.ldap.connection.url", > "security.ldap.dn.user", and "security.ldap.dn.group" in my windows > system variables > > > However, when I starting it up, I am getting the following error > message: > An exception occurred while launching the server: database instance > 'exist' is not available > org.exist.EXistException: database instance 'exist' is not available > at > org.exist.storage.BrokerPool.getInstance(BrokerPool.java:286) > at > org.exist.storage.BrokerPool.getInstance(BrokerPool.java:271) > at org.exist.StandaloneServer.run(StandaloneServer.java:180) > at org.exist.StandaloneServer.main(StandaloneServer.java:596) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.exist.start.Main.invokeMain(Main.java:128) > at org.exist.start.Main.run(Main.java:407) > at org.exist.start.Main.main(Main.java:59) > > > Could anybody help me resolve this issue please? Or could you please > point me to a more detail documentation? I could not found a > step-by-step configuration doc on how to enable LDAP in eXist-db. |
From: Thomas Mo <tm...@cm...> - 2010-05-19 05:24:00
|
Hi there, I am new to exist-db and I am trying to configure exist-db to support LDAP. I am running exist in the following environment: - stand-alone mode by calling exist/bin/server.bat - windows XP I have looked at the exist LDAP security Manager document " http://exist-db.org/ldap-security.html", but I could not make it to work. Below is what I have tried: - Placed the following security element as a child of db-connection into file eXist/conf.xml <security class="org.exist.security.LDAPSecurityManager" /> - Specify the properties "security.ldap.connection.url", "security.ldap.dn.user", and "security.ldap.dn.group" in my windows system variables However, when I starting it up, I am getting the following error message: An exception occurred while launching the server: database instance 'exist' is not available org.exist.EXistException: database instance 'exist' is not available at org.exist.storage.BrokerPool.getInstance(BrokerPool.java:286) at org.exist.storage.BrokerPool.getInstance(BrokerPool.java:271) at org.exist.StandaloneServer.run(StandaloneServer.java:180) at org.exist.StandaloneServer.main(StandaloneServer.java:596) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.exist.start.Main.invokeMain(Main.java:128) at org.exist.start.Main.run(Main.java:407) at org.exist.start.Main.main(Main.java:59) Could anybody help me resolve this issue please? Or could you please point me to a more detail documentation? I could not found a step-by-step configuration doc on how to enable LDAP in eXist-db. Thanks in advance, |
From: James F. <jam...@ex...> - 2010-05-18 11:22:15
|
someone's recent tweet about using findbugs reminded me that I had run findbugs against eXist findbugs is a static tool analyzing for common issues in java code ... some interesting results here html version http://www.webcomposite.com/existdb/existdb-findbugsanalysis.html perhaps for discussion over at irc J |
From: Thomas W. <tho...@gm...> - 2010-05-11 06:05:05
|
Loren, I think it will be a good idea to have a default value for the header, saved in a XML file in the file system or even better in /db/system/config/httpclient.xml and to have an option to change it in both cases: a) for the current call and b) change it permanently. If the config file(resource) does not exist, the module has to create it. I hope this will help. Thomas ------ Thomas White Mobile:+44 7711 922 966 Skype: thomaswhite gTalk: thomas.0007 Linked-In:http://www.linkedin.com/in/thomaswhite0007 facebook: http://www.facebook.com/thomas.0007 On 11 May 2010 01:38, Loren Cahlander <lor...@gm...> wrote: > I have some updates about httpclient. I am going to be adding function > signatures to put the authentication down in the java code, so that the > XQuery code does not have to handle that. I will also be adding the user > agent to the httpclient calls, so that the web servers can have eXist > visible in the webstats. > > HttpClient client = *new *HttpClient(); > client.getParams().setParameter("http.useragent", "My Browser"); > > Here is the user agent for Safari on my Mac. > > Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-us) > AppleWebKit/531.22.7 (KHTML, like Gecko) Version/4.0.5 Safari/531.22.7 > > I am thinking that the user agent should be something like the following: > > eXist/1.5 (Macintosh; U; Intel Mac OS X 10_6_3; en-us) > ApacheCommonsHttpclient/3.1 > > > On May 10, 2010, at 05:52 PM, Loren Cahlander wrote: > > I need to add authentication to the httpclient function module. I will > be adding the optional parameters of username and password to the functions. > If the call without the username and password returns SC_UNAUTHORIZED ala: > http://www.java2s.com/Code/Java/Apache-Common/BasicAuthenticationGetJSPMethodReturnCode.htm > > <http://www.java2s.com/Code/Java/Apache-Common/BasicAuthenticationGetJSPMethodReturnCode.htm> > Does anyone have any serious objections to this? If you do not add the > username/password combination and the call receives an SC_UNAUTHORIZED, then > it will work as it currently works. > > Loren > > > > > Here are the updated function signatures: > > httpclient <http://localhost:8080/exist/functions/httpclient> > ------------------------------ > http://exist-db.org/xquery/httpclient > A module for performing HTTP requests as a client > clear-all <http://localhost:8080/exist/functions/httpclient/clear-all> > ------------------------------ > httpclient:clear-all() empty() > Clears all persistent state (eg. cookies, crednetials, etc.) stored in > the current session on the client. > delete <http://localhost:8080/exist/functions/httpclient/delete> > ------------------------------ > httpclient:delete($url as xs:anyURI, $persist as xs:boolean, > $request-headers as element()?) item() > Performs a HTTP DELETE request. This method returns the HTTP response > encoded as an XML fragment, that looks as follows: <httpclient:response > xmlns:httpclient="http://exist-db.org/xquery/httpclient" > statusCode="200"><httpclient:headers><httpclient:header name="name" > value="value"/>...</httpclient:headers><httpclient:body > type="xml|xhtml|text|binary" mimetype="returned content mimetype">body > content</httpclient:body></httpclient:response> where XML body content will > be returned as a Node, HTML body content will be tidied into an XML > compatible form, a body with mime-type of "text/..." will be returned as a > URLEncoded string, and any other body content will be returned as > xs:base64Binary encoded data. > $url The URL to process $persist Indicates if the HTTP state (eg. > cookies, credentials, etc.) should persist for the life of this xquery > $request-headers Any HTTP Request Headers to set in the form > <headers><header name="" value=""/></headers> > ------------------------------ > Returns the XML body content > delete <http://localhost:8080/exist/functions/httpclient/delete> > ------------------------------ > httpclient:delete($url as xs:anyURI, $persist as xs:boolean, > $request-headers as element()?, $username as xs:string, $password as > xs:string) item() > Performs a HTTP DELETE request. This method returns the HTTP response > encoded as an XML fragment, that looks as follows: <httpclient:response > xmlns:httpclient="http://exist-db.org/xquery/httpclient" > statusCode="200"><httpclient:headers><httpclient:header name="name" > value="value"/>...</httpclient:headers><httpclient:body > type="xml|xhtml|text|binary" mimetype="returned content mimetype">body > content</httpclient:body></httpclient:response> where XML body content will > be returned as a Node, HTML body content will be tidied into an XML > compatible form, a body with mime-type of "text/..." will be returned as a > URLEncoded string, and any other body content will be returned as > xs:base64Binary encoded data. > $url The URL to process $persist Indicates if the HTTP state (eg. > cookies, credentials, etc.) should persist for the life of this xquery > $request-headers Any HTTP Request Headers to set in the form > <headers><header name="" value=""/></headers> $username The username for > authentication $password The password for authentication > ------------------------------ > Returns the XML body content > get <http://localhost:8080/exist/functions/httpclient/get> > ------------------------------ > httpclient:get($url as xs:anyURI, $persist as xs:boolean, $request-headers > as element()?) item() > Performs a HTTP GET request. This method returns the HTTP response > encoded as an XML fragment, that looks as follows: <httpclient:response > xmlns:httpclient="http://exist-db.org/xquery/httpclient" > statusCode="200"><httpclient:headers><httpclient:header name="name" > value="value"/>...</httpclient:headers><httpclient:body > type="xml|xhtml|text|binary" mimetype="returned content mimetype">body > content</httpclient:body></httpclient:response> where XML body content will > be returned as a Node, HTML body content will be tidied into an XML > compatible form, a body with mime-type of "text/..." will be returned as a > URLEncoded string, and any other body content will be returned as > xs:base64Binary encoded data. > $url The URL to process $persist Indicates if the HTTP state (eg. > cookies, credentials, etc.) should persist for the life of this xquery > $request-headers Any HTTP Request Headers to set in the form > <headers><header name="" value=""/></headers> > ------------------------------ > Returns the XML body content > get <http://localhost:8080/exist/functions/httpclient/get> > ------------------------------ > httpclient:get($url as xs:anyURI, $persist as xs:boolean, $request-headers > as element()?, $username as xs:string, $password as xs:string) item() > Performs a HTTP GET request. This method returns the HTTP response > encoded as an XML fragment, that looks as follows: <httpclient:response > xmlns:httpclient="http://exist-db.org/xquery/httpclient" > statusCode="200"><httpclient:headers><httpclient:header name="name" > value="value"/>...</httpclient:headers><httpclient:body > type="xml|xhtml|text|binary" mimetype="returned content mimetype">body > content</httpclient:body></httpclient:response> where XML body content will > be returned as a Node, HTML body content will be tidied into an XML > compatible form, a body with mime-type of "text/..." will be returned as a > URLEncoded string, and any other body content will be returned as > xs:base64Binary encoded data. > $url The URL to process $persist Indicates if the HTTP state (eg. > cookies, credentials, etc.) should persist for the life of this xquery > $request-headers Any HTTP Request Headers to set in the form > <headers><header name="" value=""/></headers> $username The username for > authentication $password The password for authentication > ------------------------------ > Returns the XML body content > head <http://localhost:8080/exist/functions/httpclient/head> > ------------------------------ > httpclient:head($url as xs:anyURI, $persist as xs:boolean, $request-headers > as element()?) item() > Performs a HTTP HEAD request. This method returns the HTTP response > encoded as an XML fragment, that looks as follows: <httpclient:response > xmlns:httpclient="http://exist-db.org/xquery/httpclient" > statusCode="200"><httpclient:headers><httpclient:header name="name" > value="value"/>...</httpclient:headers></httpclient:response> > $url The URL to process $persist Indicates if the HTTP state (eg. > cookies, credentials, etc.) should persist for the life of this xquery > $request-headers Any HTTP Request Headers to set in the form > <headers><header name="" value=""/></headers> > ------------------------------ > Returns the XML body content > head <http://localhost:8080/exist/functions/httpclient/head> > ------------------------------ > httpclient:head($url as xs:anyURI, $persist as xs:boolean, $request-headers > as element()?, $username as xs:string, $password as xs:string) item() > Performs a HTTP HEAD request. This method returns the HTTP response > encoded as an XML fragment, that looks as follows: <httpclient:response > xmlns:httpclient="http://exist-db.org/xquery/httpclient" > statusCode="200"><httpclient:headers><httpclient:header name="name" > value="value"/>...</httpclient:headers></httpclient:response> > $url The URL to process $persist Indicates if the HTTP state (eg. > cookies, credentials, etc.) should persist for the life of this xquery > $request-headers Any HTTP Request Headers to set in the form > <headers><header name="" value=""/></headers> $username The username for > authentication $password The password for authentication > ------------------------------ > Returns the XML body content > options <http://localhost:8080/exist/functions/httpclient/options> > ------------------------------ > httpclient:options($url as xs:anyURI, $persist as xs:boolean, > $request-headers as element()?) item() > Performs a HTTP OPTIONS request. This method returns the HTTP response > encoded as an XML fragment, that looks as follows: <httpclient:response > xmlns:httpclient="http://exist-db.org/xquery/httpclient" > statusCode="200"><httpclient:headers><httpclient:header name="name" > value="value"/>...</httpclient:headers></httpclient:response> > $url The URL to process $persist Indicates if the HTTP state (eg. > cookies, credentials, etc.) should persist for the life of this xquery > $request-headers Any HTTP Request Headers to set in the form > <headers><header name="" value=""/></headers> > ------------------------------ > Returns the XML body content > options <http://localhost:8080/exist/functions/httpclient/options> > ------------------------------ > httpclient:options($url as xs:anyURI, $persist as xs:boolean, > $request-headers as element()?, $username as xs:string, $password as > xs:string) item() > Performs a HTTP OPTIONS request. This method returns the HTTP response > encoded as an XML fragment, that looks as follows: <httpclient:response > xmlns:httpclient="http://exist-db.org/xquery/httpclient" > statusCode="200"><httpclient:headers><httpclient:header name="name" > value="value"/>...</httpclient:headers></httpclient:response> > $url The URL to process $persist Indicates if the HTTP state (eg. > cookies, credentials, etc.) should persist for the life of this xquery > $request-headers Any HTTP Request Headers to set in the form > <headers><header name="" value=""/></headers> $username The username for > authentication $password The password for authentication > ------------------------------ > Returns the XML body content > post <http://localhost:8080/exist/functions/httpclient/post> > ------------------------------ > httpclient:post($url as xs:anyURI, $content as item(), $persist as > xs:boolean, $request-headers as element()?) item() > Performs a HTTP POST request. This method returns the HTTP response > encoded as an XML fragment, that looks as follows: <httpclient:response > xmlns:httpclient="http://exist-db.org/xquery/httpclient" > statusCode="200"><httpclient:headers><httpclient:header name="name" > value="value"/>...</httpclient:headers><httpclient:body > type="xml|xhtml|text|binary" mimetype="returned content mimetype">body > content</httpclient:body></httpclient:response> where XML body content will > be returned as a Node, HTML body content will be tidied into an XML > compatible form, a body with mime-type of "text/..." will be returned as a > URLEncoded string, and any other body content will be returned as > xs:base64Binary encoded data. > $url The URL to process $content The XML POST payload/content. If it > is an XML Node it will be serialized, any other type will be atomized into a > string. $persist Indicates if the HTTP state (eg. cookies, credentials, > etc.) should persist for the life of this xquery $request-headers Any > HTTP Request Headers to set in the form <headers><header name="" > value=""/></headers> > ------------------------------ > Returns the XML body content > post <http://localhost:8080/exist/functions/httpclient/post> > ------------------------------ > httpclient:post($url as xs:anyURI, $content as item(), $persist as > xs:boolean, $request-headers as element()?, $username as xs:string, > $password as xs:string) item() > Performs a HTTP POST request. This method returns the HTTP response > encoded as an XML fragment, that looks as follows: <httpclient:response > xmlns:httpclient="http://exist-db.org/xquery/httpclient" > statusCode="200"><httpclient:headers><httpclient:header name="name" > value="value"/>...</httpclient:headers><httpclient:body > type="xml|xhtml|text|binary" mimetype="returned content mimetype">body > content</httpclient:body></httpclient:response> where XML body content will > be returned as a Node, HTML body content will be tidied into an XML > compatible form, a body with mime-type of "text/..." will be returned as a > URLEncoded string, and any other body content will be returned as > xs:base64Binary encoded data. > $url The URL to process $content The XML POST payload/content. If it > is an XML Node it will be serialized, any other type will be atomized into a > string. $persist Indicates if the HTTP state (eg. cookies, credentials, > etc.) should persist for the life of this xquery $request-headers Any > HTTP Request Headers to set in the form <headers><header name="" > value=""/></headers> $username The username for authentication $password The > password for authentication > ------------------------------ > Returns the XML body content > post-form <http://localhost:8080/exist/functions/httpclient/post-form> > ------------------------------ > httpclient:post-form($url as xs:anyURI, $content as element(), $persist as > xs:boolean, $request-headers as element()?) item() > Performs a HTTP POST request for a form. This method returns the HTTP > response encoded as an XML fragment, that looks as follows: > <httpclient:response xmlns:httpclient=" > http://exist-db.org/xquery/httpclient" > statusCode="200"><httpclient:headers><httpclient:header name="name" > value="value"/>...</httpclient:headers><httpclient:body > type="xml|xhtml|text|binary" mimetype="returned content mimetype">body > content</httpclient:body></httpclient:response> where XML body content will > be returned as a Node, HTML body content will be tidied into an XML > compatible form, a body with mime-type of "text/..." will be returned as a > URLEncoded string, and any other body content will be returned as > xs:base64Binary encoded data. > $url The URL to process $content The form data in the format > <httpclient:fields><httpclient:field name="" value="" > type="string|file"/>...</httpclient:fields>. If the field values will be > suitably URLEncoded and sent with the mime type > application/x-www-form-urlencoded. $persist Indicates if the HTTP state > (eg. cookies, credentials, etc.) should persist for the life of this xquery > $request-headers Any HTTP Request Headers to set in the form > <headers><header name="" value=""/></headers> > ------------------------------ > Returns the XML body content > post-form <http://localhost:8080/exist/functions/httpclient/post-form> > ------------------------------ > httpclient:post-form($url as xs:anyURI, $content as element(), $persist as > xs:boolean, $request-headers as element()?, $username as xs:string, > $password as xs:string) item() > Performs a HTTP POST request for a form. This method returns the HTTP > response encoded as an XML fragment, that looks as follows: > <httpclient:response xmlns:httpclient=" > http://exist-db.org/xquery/httpclient" > statusCode="200"><httpclient:headers><httpclient:header name="name" > value="value"/>...</httpclient:headers><httpclient:body > type="xml|xhtml|text|binary" mimetype="returned content mimetype">body > content</httpclient:body></httpclient:response> where XML body content will > be returned as a Node, HTML body content will be tidied into an XML > compatible form, a body with mime-type of "text/..." will be returned as a > URLEncoded string, and any other body content will be returned as > xs:base64Binary encoded data. > $url The URL to process $content The form data in the format > <httpclient:fields><httpclient:field name="" value="" > type="string|file"/>...</httpclient:fields>. If the field values will be > suitably URLEncoded and sent with the mime type > application/x-www-form-urlencoded. $persist Indicates if the HTTP state > (eg. cookies, credentials, etc.) should persist for the life of this xquery > $request-headers Any HTTP Request Headers to set in the form > <headers><header name="" value=""/></headers> $username The username for > authentication $password The password for authentication > ------------------------------ > Returns the XML body content > put <http://localhost:8080/exist/functions/httpclient/put> > ------------------------------ > httpclient:put($url as xs:anyURI, $content as node(), $persist as > xs:boolean, $request-headers as element()?) item() > Performs a HTTP PUT request.. This method returns the HTTP response > encoded as an XML fragment, that looks as follows: <httpclient:response > xmlns:httpclient="http://exist-db.org/xquery/httpclient" > statusCode="200"><httpclient:headers><httpclient:header name="name" > value="value"/>...</httpclient:headers><httpclient:body > type="xml|xhtml|text|binary" mimetype="returned content mimetype">body > content</httpclient:body></httpclient:response> where XML body content will > be returned as a Node, HTML body content will be tidied into an XML > compatible form, a body with mime-type of "text/..." will be returned as a > URLEncoded string, and any other body content will be returned as > xs:base64Binary encoded data. > $url The URL to process $content The XML PUT payload/content. If it is > an XML Node it will be serialized, any other type will be atomized into a > string. $persist Indicates if the HTTP state (eg. cookies, credentials, > etc.) should persist for the life of this xquery $request-headers Any > HTTP Request Headers to set in the form <headers><header name="" > value=""/></headers> > ------------------------------ > Returns the XML body content > put <http://localhost:8080/exist/functions/httpclient/put> > ------------------------------ > httpclient:put($url as xs:anyURI, $content as node(), $persist as > xs:boolean, $request-headers as element()?, $username as xs:string, > $password as xs:string) item() > Performs a HTTP PUT request.. This method returns the HTTP response > encoded as an XML fragment, that looks as follows: <httpclient:response > xmlns:httpclient="http://exist-db.org/xquery/httpclient" > statusCode="200"><httpclient:headers><httpclient:header name="name" > value="value"/>...</httpclient:headers><httpclient:body > type="xml|xhtml|text|binary" mimetype="returned content mimetype">body > content</httpclient:body></httpclient:response> where XML body content will > be returned as a Node, HTML body content will be tidied into an XML > compatible form, a body with mime-type of "text/..." will be returned as a > URLEncoded string, and any other body content will be returned as > xs:base64Binary encoded data. > $url The URL to process $content The XML PUT payload/content. If it is > an XML Node it will be serialized, any other type will be atomized into a > string. $persist Indicates if the HTTP state (eg. cookies, credentials, > etc.) should persist for the life of this xquery $request-headers Any > HTTP Request Headers to set in the form <headers><header name="" > value=""/></headers> $username The username for authentication $password The > password for authentication > ------------------------------ > Returns the XML body content > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Exist-development mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-development > > |
From: Loren C. <lor...@gm...> - 2010-05-11 00:53:31
|
I have some updates about httpclient. I am going to be adding function signatures to put the authentication down in the java code, so that the XQuery code does not have to handle that. I will also be adding the user agent to the httpclient calls, so that the web servers can have eXist visible in the webstats. HttpClient client = new HttpClient(); client.getParams().setParameter("http.useragent", "My Browser"); Here is the user agent for Safari on my Mac. Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-us) AppleWebKit/531.22.7 (KHTML, like Gecko) Version/4.0.5 Safari/531.22.7 I am thinking that the user agent should be something like the following: eXist/1.5 (Macintosh; U; Intel Mac OS X 10_6_3; en-us) ApacheCommonsHttpclient/3.1 On May 10, 2010, at 05:52 PM, Loren Cahlander wrote: > I need to add authentication to the httpclient function module. I will be adding the optional parameters of username and password to the functions. If the call without the username and password returns SC_UNAUTHORIZED ala: http://www.java2s.com/Code/Java/Apache-Common/BasicAuthenticationGetJSPMethodReturnCode.htm > > Does anyone have any serious objections to this? If you do not add the username/password combination and the call receives an SC_UNAUTHORIZED, then it will work as it currently works. > > Loren > > Here are the updated function signatures: httpclient http://exist-db.org/xquery/httpclient A module for performing HTTP requests as a client clear-all httpclient:clear-all() empty() Clears all persistent state (eg. cookies, crednetials, etc.) stored in the current session on the client. delete httpclient:delete($url as xs:anyURI, $persist as xs:boolean, $request-headers as element()?) item() Performs a HTTP DELETE request. This method returns the HTTP response encoded as an XML fragment, that looks as follows: <httpclient:response xmlns:httpclient="http://exist-db.org/xquery/httpclient" statusCode="200"><httpclient:headers><httpclient:header name="name" value="value"/>...</httpclient:headers><httpclient:body type="xml|xhtml|text|binary" mimetype="returned content mimetype">body content</httpclient:body></httpclient:response> where XML body content will be returned as a Node, HTML body content will be tidied into an XML compatible form, a body with mime-type of "text/..." will be returned as a URLEncoded string, and any other body content will be returned as xs:base64Binary encoded data. $url The URL to process $persist Indicates if the HTTP state (eg. cookies, credentials, etc.) should persist for the life of this xquery $request-headers Any HTTP Request Headers to set in the form <headers><header name="" value=""/></headers> Returns the XML body content delete httpclient:delete($url as xs:anyURI, $persist as xs:boolean, $request-headers as element()?, $username as xs:string, $password as xs:string) item() Performs a HTTP DELETE request. This method returns the HTTP response encoded as an XML fragment, that looks as follows: <httpclient:response xmlns:httpclient="http://exist-db.org/xquery/httpclient" statusCode="200"><httpclient:headers><httpclient:header name="name" value="value"/>...</httpclient:headers><httpclient:body type="xml|xhtml|text|binary" mimetype="returned content mimetype">body content</httpclient:body></httpclient:response> where XML body content will be returned as a Node, HTML body content will be tidied into an XML compatible form, a body with mime-type of "text/..." will be returned as a URLEncoded string, and any other body content will be returned as xs:base64Binary encoded data. $url The URL to process $persist Indicates if the HTTP state (eg. cookies, credentials, etc.) should persist for the life of this xquery $request-headers Any HTTP Request Headers to set in the form <headers><header name="" value=""/></headers> $username The username for authentication $password The password for authentication Returns the XML body content get httpclient:get($url as xs:anyURI, $persist as xs:boolean, $request-headers as element()?) item() Performs a HTTP GET request. This method returns the HTTP response encoded as an XML fragment, that looks as follows: <httpclient:response xmlns:httpclient="http://exist-db.org/xquery/httpclient" statusCode="200"><httpclient:headers><httpclient:header name="name" value="value"/>...</httpclient:headers><httpclient:body type="xml|xhtml|text|binary" mimetype="returned content mimetype">body content</httpclient:body></httpclient:response> where XML body content will be returned as a Node, HTML body content will be tidied into an XML compatible form, a body with mime-type of "text/..." will be returned as a URLEncoded string, and any other body content will be returned as xs:base64Binary encoded data. $url The URL to process $persist Indicates if the HTTP state (eg. cookies, credentials, etc.) should persist for the life of this xquery $request-headers Any HTTP Request Headers to set in the form <headers><header name="" value=""/></headers> Returns the XML body content get httpclient:get($url as xs:anyURI, $persist as xs:boolean, $request-headers as element()?, $username as xs:string, $password as xs:string) item() Performs a HTTP GET request. This method returns the HTTP response encoded as an XML fragment, that looks as follows: <httpclient:response xmlns:httpclient="http://exist-db.org/xquery/httpclient" statusCode="200"><httpclient:headers><httpclient:header name="name" value="value"/>...</httpclient:headers><httpclient:body type="xml|xhtml|text|binary" mimetype="returned content mimetype">body content</httpclient:body></httpclient:response> where XML body content will be returned as a Node, HTML body content will be tidied into an XML compatible form, a body with mime-type of "text/..." will be returned as a URLEncoded string, and any other body content will be returned as xs:base64Binary encoded data. $url The URL to process $persist Indicates if the HTTP state (eg. cookies, credentials, etc.) should persist for the life of this xquery $request-headers Any HTTP Request Headers to set in the form <headers><header name="" value=""/></headers> $username The username for authentication $password The password for authentication Returns the XML body content head httpclient:head($url as xs:anyURI, $persist as xs:boolean, $request-headers as element()?) item() Performs a HTTP HEAD request. This method returns the HTTP response encoded as an XML fragment, that looks as follows: <httpclient:response xmlns:httpclient="http://exist-db.org/xquery/httpclient" statusCode="200"><httpclient:headers><httpclient:header name="name" value="value"/>...</httpclient:headers></httpclient:response> $url The URL to process $persist Indicates if the HTTP state (eg. cookies, credentials, etc.) should persist for the life of this xquery $request-headers Any HTTP Request Headers to set in the form <headers><header name="" value=""/></headers> Returns the XML body content head httpclient:head($url as xs:anyURI, $persist as xs:boolean, $request-headers as element()?, $username as xs:string, $password as xs:string) item() Performs a HTTP HEAD request. This method returns the HTTP response encoded as an XML fragment, that looks as follows: <httpclient:response xmlns:httpclient="http://exist-db.org/xquery/httpclient" statusCode="200"><httpclient:headers><httpclient:header name="name" value="value"/>...</httpclient:headers></httpclient:response> $url The URL to process $persist Indicates if the HTTP state (eg. cookies, credentials, etc.) should persist for the life of this xquery $request-headers Any HTTP Request Headers to set in the form <headers><header name="" value=""/></headers> $username The username for authentication $password The password for authentication Returns the XML body content options httpclient:options($url as xs:anyURI, $persist as xs:boolean, $request-headers as element()?) item() Performs a HTTP OPTIONS request. This method returns the HTTP response encoded as an XML fragment, that looks as follows: <httpclient:response xmlns:httpclient="http://exist-db.org/xquery/httpclient" statusCode="200"><httpclient:headers><httpclient:header name="name" value="value"/>...</httpclient:headers></httpclient:response> $url The URL to process $persist Indicates if the HTTP state (eg. cookies, credentials, etc.) should persist for the life of this xquery $request-headers Any HTTP Request Headers to set in the form <headers><header name="" value=""/></headers> Returns the XML body content options httpclient:options($url as xs:anyURI, $persist as xs:boolean, $request-headers as element()?, $username as xs:string, $password as xs:string) item() Performs a HTTP OPTIONS request. This method returns the HTTP response encoded as an XML fragment, that looks as follows: <httpclient:response xmlns:httpclient="http://exist-db.org/xquery/httpclient" statusCode="200"><httpclient:headers><httpclient:header name="name" value="value"/>...</httpclient:headers></httpclient:response> $url The URL to process $persist Indicates if the HTTP state (eg. cookies, credentials, etc.) should persist for the life of this xquery $request-headers Any HTTP Request Headers to set in the form <headers><header name="" value=""/></headers> $username The username for authentication $password The password for authentication Returns the XML body content post httpclient:post($url as xs:anyURI, $content as item(), $persist as xs:boolean, $request-headers as element()?) item() Performs a HTTP POST request. This method returns the HTTP response encoded as an XML fragment, that looks as follows: <httpclient:response xmlns:httpclient="http://exist-db.org/xquery/httpclient" statusCode="200"><httpclient:headers><httpclient:header name="name" value="value"/>...</httpclient:headers><httpclient:body type="xml|xhtml|text|binary" mimetype="returned content mimetype">body content</httpclient:body></httpclient:response> where XML body content will be returned as a Node, HTML body content will be tidied into an XML compatible form, a body with mime-type of "text/..." will be returned as a URLEncoded string, and any other body content will be returned as xs:base64Binary encoded data. $url The URL to process $content The XML POST payload/content. If it is an XML Node it will be serialized, any other type will be atomized into a string. $persist Indicates if the HTTP state (eg. cookies, credentials, etc.) should persist for the life of this xquery $request-headers Any HTTP Request Headers to set in the form <headers><header name="" value=""/></headers> Returns the XML body content post httpclient:post($url as xs:anyURI, $content as item(), $persist as xs:boolean, $request-headers as element()?, $username as xs:string, $password as xs:string) item() Performs a HTTP POST request. This method returns the HTTP response encoded as an XML fragment, that looks as follows: <httpclient:response xmlns:httpclient="http://exist-db.org/xquery/httpclient" statusCode="200"><httpclient:headers><httpclient:header name="name" value="value"/>...</httpclient:headers><httpclient:body type="xml|xhtml|text|binary" mimetype="returned content mimetype">body content</httpclient:body></httpclient:response> where XML body content will be returned as a Node, HTML body content will be tidied into an XML compatible form, a body with mime-type of "text/..." will be returned as a URLEncoded string, and any other body content will be returned as xs:base64Binary encoded data. $url The URL to process $content The XML POST payload/content. If it is an XML Node it will be serialized, any other type will be atomized into a string. $persist Indicates if the HTTP state (eg. cookies, credentials, etc.) should persist for the life of this xquery $request-headers Any HTTP Request Headers to set in the form <headers><header name="" value=""/></headers> $username The username for authentication $password The password for authentication Returns the XML body content post-form httpclient:post-form($url as xs:anyURI, $content as element(), $persist as xs:boolean, $request-headers as element()?) item() Performs a HTTP POST request for a form. This method returns the HTTP response encoded as an XML fragment, that looks as follows: <httpclient:response xmlns:httpclient="http://exist-db.org/xquery/httpclient" statusCode="200"><httpclient:headers><httpclient:header name="name" value="value"/>...</httpclient:headers><httpclient:body type="xml|xhtml|text|binary" mimetype="returned content mimetype">body content</httpclient:body></httpclient:response> where XML body content will be returned as a Node, HTML body content will be tidied into an XML compatible form, a body with mime-type of "text/..." will be returned as a URLEncoded string, and any other body content will be returned as xs:base64Binary encoded data. $url The URL to process $content The form data in the format <httpclient:fields><httpclient:field name="" value="" type="string|file"/>...</httpclient:fields>. If the field values will be suitably URLEncoded and sent with the mime type application/x-www-form-urlencoded. $persist Indicates if the HTTP state (eg. cookies, credentials, etc.) should persist for the life of this xquery $request-headers Any HTTP Request Headers to set in the form <headers><header name="" value=""/></headers> Returns the XML body content post-form httpclient:post-form($url as xs:anyURI, $content as element(), $persist as xs:boolean, $request-headers as element()?, $username as xs:string, $password as xs:string) item() Performs a HTTP POST request for a form. This method returns the HTTP response encoded as an XML fragment, that looks as follows: <httpclient:response xmlns:httpclient="http://exist-db.org/xquery/httpclient" statusCode="200"><httpclient:headers><httpclient:header name="name" value="value"/>...</httpclient:headers><httpclient:body type="xml|xhtml|text|binary" mimetype="returned content mimetype">body content</httpclient:body></httpclient:response> where XML body content will be returned as a Node, HTML body content will be tidied into an XML compatible form, a body with mime-type of "text/..." will be returned as a URLEncoded string, and any other body content will be returned as xs:base64Binary encoded data. $url The URL to process $content The form data in the format <httpclient:fields><httpclient:field name="" value="" type="string|file"/>...</httpclient:fields>. If the field values will be suitably URLEncoded and sent with the mime type application/x-www-form-urlencoded. $persist Indicates if the HTTP state (eg. cookies, credentials, etc.) should persist for the life of this xquery $request-headers Any HTTP Request Headers to set in the form <headers><header name="" value=""/></headers> $username The username for authentication $password The password for authentication Returns the XML body content put httpclient:put($url as xs:anyURI, $content as node(), $persist as xs:boolean, $request-headers as element()?) item() Performs a HTTP PUT request.. This method returns the HTTP response encoded as an XML fragment, that looks as follows: <httpclient:response xmlns:httpclient="http://exist-db.org/xquery/httpclient" statusCode="200"><httpclient:headers><httpclient:header name="name" value="value"/>...</httpclient:headers><httpclient:body type="xml|xhtml|text|binary" mimetype="returned content mimetype">body content</httpclient:body></httpclient:response> where XML body content will be returned as a Node, HTML body content will be tidied into an XML compatible form, a body with mime-type of "text/..." will be returned as a URLEncoded string, and any other body content will be returned as xs:base64Binary encoded data. $url The URL to process $content The XML PUT payload/content. If it is an XML Node it will be serialized, any other type will be atomized into a string. $persist Indicates if the HTTP state (eg. cookies, credentials, etc.) should persist for the life of this xquery $request-headers Any HTTP Request Headers to set in the form <headers><header name="" value=""/></headers> Returns the XML body content put httpclient:put($url as xs:anyURI, $content as node(), $persist as xs:boolean, $request-headers as element()?, $username as xs:string, $password as xs:string) item() Performs a HTTP PUT request.. This method returns the HTTP response encoded as an XML fragment, that looks as follows: <httpclient:response xmlns:httpclient="http://exist-db.org/xquery/httpclient" statusCode="200"><httpclient:headers><httpclient:header name="name" value="value"/>...</httpclient:headers><httpclient:body type="xml|xhtml|text|binary" mimetype="returned content mimetype">body content</httpclient:body></httpclient:response> where XML body content will be returned as a Node, HTML body content will be tidied into an XML compatible form, a body with mime-type of "text/..." will be returned as a URLEncoded string, and any other body content will be returned as xs:base64Binary encoded data. $url The URL to process $content The XML PUT payload/content. If it is an XML Node it will be serialized, any other type will be atomized into a string. $persist Indicates if the HTTP state (eg. cookies, credentials, etc.) should persist for the life of this xquery $request-headers Any HTTP Request Headers to set in the form <headers><header name="" value=""/></headers> $username The username for authentication $password The password for authentication Returns the XML body content |
From: Loren C. <lor...@gm...> - 2010-05-10 22:52:46
|
I need to add authentication to the httpclient function module. I will be adding the optional parameters of username and password to the functions. If the call without the username and password returns SC_UNAUTHORIZED ala: http://www.java2s.com/Code/Java/Apache-Common/BasicAuthenticationGetJSPMethodReturnCode.htm Does anyone have any serious objections to this? If you do not add the username/password combination and the call receives an SC_UNAUTHORIZED, then it will work as it currently works. Loren httpclient http://exist-db.org/xquery/httpclient A module for performing HTTP requests as a client clear-all httpclient:clear-all() empty() Clears all persistent state (eg. cookies, crednetials, etc.) stored in the current session on the client. delete httpclient:delete($url as xs:anyURI, $persist as xs:boolean, $request-headers as element()?, $username as xs:string?, $password as xs:string?) item() Performs a HTTP DELETE request. This method returns the HTTP response encoded as an XML fragment, that looks as follows: <httpclient:response xmlns:httpclient="http://exist-db.org/xquery/httpclient" statusCode="200"><httpclient:headers><httpclient:header name="name" value="value"/>...</httpclient:headers><httpclient:body type="xml|xhtml|text|binary" mimetype="returned content mimetype">body content</httpclient:body></httpclient:response> where XML body content will be returned as a Node, HTML body content will be tidied into an XML compatible form, a body with mime-type of "text/..." will be returned as a URLEncoded string, and any other body content will be returned as xs:base64Binary encoded data. $url The URL to process $persist Indicates if the HTTP state (eg. cookies, credentials, etc.) should persist for the life of this xquery $request-headers Any HTTP Request Headers to set in the form <headers><header name="" value=""/></headers> $username The username $password The password Returns the XML body content get httpclient:get($url as xs:anyURI, $persist as xs:boolean, $request-headers as element()?, $username as xs:string?, $password as xs:string?) item() Performs a HTTP GET request. This method returns the HTTP response encoded as an XML fragment, that looks as follows: <httpclient:response xmlns:httpclient="http://exist-db.org/xquery/httpclient" statusCode="200"><httpclient:headers><httpclient:header name="name" value="value"/>...</httpclient:headers><httpclient:body type="xml|xhtml|text|binary" mimetype="returned content mimetype">body content</httpclient:body></httpclient:response> where XML body content will be returned as a Node, HTML body content will be tidied into an XML compatible form, a body with mime-type of "text/..." will be returned as a URLEncoded string, and any other body content will be returned as xs:base64Binary encoded data. $url The URL to process $persist Indicates if the HTTP state (eg. cookies, credentials, etc.) should persist for the life of this xquery $request-headers Any HTTP Request Headers to set in the form <headers><header name="" value=""/></headers> Returns the XML body content head httpclient:head($url as xs:anyURI, $persist as xs:boolean, $request-headers as element()?, $username as xs:string?, $password as xs:string?) item() Performs a HTTP HEAD request. This method returns the HTTP response encoded as an XML fragment, that looks as follows: <httpclient:response xmlns:httpclient="http://exist-db.org/xquery/httpclient" statusCode="200"><httpclient:headers><httpclient:header name="name" value="value"/>...</httpclient:headers></httpclient:response> $url The URL to process $persist Indicates if the HTTP state (eg. cookies, credentials, etc.) should persist for the life of this xquery $request-headers Any HTTP Request Headers to set in the form <headers><header name="" value=""/></headers> Returns the XML body content options httpclient:options($url as xs:anyURI, $persist as xs:boolean, $request-headers as element()?, $username as xs:string?, $password as xs:string?) item() Performs a HTTP OPTIONS request. This method returns the HTTP response encoded as an XML fragment, that looks as follows: <httpclient:response xmlns:httpclient="http://exist-db.org/xquery/httpclient" statusCode="200"><httpclient:headers><httpclient:header name="name" value="value"/>...</httpclient:headers></httpclient:response> $url The URL to process $persist Indicates if the HTTP state (eg. cookies, credentials, etc.) should persist for the life of this xquery $request-headers Any HTTP Request Headers to set in the form <headers><header name="" value=""/></headers> Returns the XML body content post httpclient:post($url as xs:anyURI, $content as item(), $persist as xs:boolean, $request-headers as element()?, $username as xs:string?, $password as xs:string?) item() Performs a HTTP POST request. This method returns the HTTP response encoded as an XML fragment, that looks as follows: <httpclient:response xmlns:httpclient="http://exist-db.org/xquery/httpclient" statusCode="200"><httpclient:headers><httpclient:header name="name" value="value"/>...</httpclient:headers><httpclient:body type="xml|xhtml|text|binary" mimetype="returned content mimetype">body content</httpclient:body></httpclient:response> where XML body content will be returned as a Node, HTML body content will be tidied into an XML compatible form, a body with mime-type of "text/..." will be returned as a URLEncoded string, and any other body content will be returned as xs:base64Binary encoded data. $url The URL to process $content The XML POST payload/content. If it is an XML Node it will be serialized, any other type will be atomized into a string. $persist Indicates if the HTTP state (eg. cookies, credentials, etc.) should persist for the life of this xquery $request-headers Any HTTP Request Headers to set in the form <headers><header name="" value=""/></headers> Returns the XML body content post-form httpclient:post-form($url as xs:anyURI, $content as element(), $persist as xs:boolean, $request-headers as element()?, $username as xs:string?, $password as xs:string?) item() Performs a HTTP POST request for a form. This method returns the HTTP response encoded as an XML fragment, that looks as follows: <httpclient:response xmlns:httpclient="http://exist-db.org/xquery/httpclient" statusCode="200"><httpclient:headers><httpclient:header name="name" value="value"/>...</httpclient:headers><httpclient:body type="xml|xhtml|text|binary" mimetype="returned content mimetype">body content</httpclient:body></httpclient:response> where XML body content will be returned as a Node, HTML body content will be tidied into an XML compatible form, a body with mime-type of "text/..." will be returned as a URLEncoded string, and any other body content will be returned as xs:base64Binary encoded data. $url The URL to process $content The form data in the format <httpclient:fields><httpclient:field name="" value="" type="string|file"/>...</httpclient:fields>. If the field values will be suitably URLEncoded and sent with the mime type application/x-www-form-urlencoded. $persist Indicates if the HTTP state (eg. cookies, credentials, etc.) should persist for the life of this xquery $request-headers Any HTTP Request Headers to set in the form <headers><header name="" value=""/></headers> Returns the XML body content put httpclient:put($url as xs:anyURI, $content as node(), $persist as xs:boolean, $request-headers as element()?, $username as xs:string?, $password as xs:string?) item() Performs a HTTP PUT request.. This method returns the HTTP response encoded as an XML fragment, that looks as follows: <httpclient:response xmlns:httpclient="http://exist-db.org/xquery/httpclient" statusCode="200"><httpclient:headers><httpclient:header name="name" value="value"/>...</httpclient:headers><httpclient:body type="xml|xhtml|text|binary" mimetype="returned content mimetype">body content</httpclient:body></httpclient:response> where XML body content will be returned as a Node, HTML body content will be tidied into an XML compatible form, a body with mime-type of "text/..." will be returned as a URLEncoded string, and any other body content will be returned as xs:base64Binary encoded data. $url The URL to process $content The XML PUT payload/content. If it is an XML Node it will be serialized, any other type will be atomized into a string. $persist Indicates if the HTTP state (eg. cookies, credentials, etc.) should persist for the life of this xquery $request-headers Any HTTP Request Headers to set in the form <headers><header name="" value=""/></headers> Returns the XML body content Return to list of all modules |
From: Dannes W. <di...@ex...> - 2010-05-09 10:11:38
|
Hi, On 09-May-10 01:58, David Patterson wrote: > [javac] /Users/patterd/Documents/eclipseeXist/eXist-1.5dev/test/src/org/exist/xquery/functions/util/CounterTest.java:9: package org.exist.xquery.modules.counter does not exist > [javac] import org.exist.xquery.modules.counter.CounterModule; > I have seen this issue before. Please make sure that the exist.jar is build first regards Dannes |
From: David P. <pa...@ma...> - 2010-05-08 23:58:49
|
I've tried to follow the document for Eclipse Setup (which mentions 1.3) to build a latest-level 1.5dev level system on an up to date mac system for use with Eclipse. The clean and download-additional-jars steps work fine. When I run the build script, I get the following error: test-compile: [mkdir] Created dir: /Users/patterd/Documents/eclipseeXist/eXist-1.5dev/test/classes [echo] Compiling with Java 1.6 from 1.6 source to 1.6 target, debug on, optimize on, deprecation off [javac] Compiling 275 source files to /Users/patterd/Documents/eclipseeXist/eXist-1.5dev/test/classes [javac] /Users/patterd/Documents/eclipseeXist/eXist-1.5dev/test/src/org/exist/xquery/functions/util/CounterTest.java:9: package org.exist.xquery.modules.counter does not exist [javac] import org.exist.xquery.modules.counter.CounterModule; [javac] ^ [javac] /Users/patterd/Documents/eclipseeXist/eXist-1.5dev/test/src/org/exist/xquery/functions/util/CounterTest.java:25: cannot find symbol [javac] symbol : variable CounterModule [javac] location: class org.exist.xquery.functions.util.CounterTest [javac] private final static String IMPORT = "import module namespace counter=\"" + CounterModule.NAMESPACE_URI + "\" " + [javac] ^ [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 2 errors BUILD FAILED /Users/patterd/Documents/eclipseeXist/eXist-1.5dev/build/scripts/junit.xml:44: Compile failed; see the compiler error output for details. Is there a work-around for this? Dave Patterson |
From: Adam R. <ad...@ex...> - 2010-05-05 14:07:02
|
Sure, no problems with 6MB files :-) On 5 May 2010 14:46, Diana ALLAM <dia...@et...> wrote: > At the moment, I wish treat XML files at least 6MB, but in the futur, my > Java application may be used for XML Files more than 6MB, maybe in GB, but > not in TB or PB. > > Diana ALLAM > > > >>> Before I see the documentation and begin to test eXist with my needs, I >>> would like to know if eXist has been tested with huge XML files? >>> I'm interested to treat Xml files up of 6MB. >> >> Huge XML files - 6MB is not huge. Did you mean GB, TB or PB? >> >> >> -- >> Adam Retter >> >> eXist Developer >> { United Kingdom } >> ad...@ex... >> irc://irc.freenode.net/existdb >> > > > -- Adam Retter eXist Developer { United Kingdom } ad...@ex... irc://irc.freenode.net/existdb |
From: Diana A. <dia...@et...> - 2010-05-05 13:46:28
|
At the moment, I wish treat XML files at least 6MB, but in the futur, my Java application may be used for XML Files more than 6MB, maybe in GB, but not in TB or PB. Diana ALLAM >> Before I see the documentation and begin to test eXist with my needs, I >> would like to know if eXist has been tested with huge XML files? >> I'm interested to treat Xml files up of 6MB. > > Huge XML files - 6MB is not huge. Did you mean GB, TB or PB? > > > -- > Adam Retter > > eXist Developer > { United Kingdom } > ad...@ex... > irc://irc.freenode.net/existdb > |
From: Adam R. <ad...@ex...> - 2010-05-05 13:23:56
|
> Before I see the documentation and begin to test eXist with my needs, I > would like to know if eXist has been tested with huge XML files? > I'm interested to treat Xml files up of 6MB. Huge XML files - 6MB is not huge. Did you mean GB, TB or PB? -- Adam Retter eXist Developer { United Kingdom } ad...@ex... irc://irc.freenode.net/existdb |
From: Diana A. <dia...@et...> - 2010-05-05 13:20:56
|
Hello, thanks all for your responses. Before I see the documentation and begin to test eXist with my needs, I would like to know if eXist has been tested with huge XML files? I'm interested to treat Xml files up of 6MB. Is there a JVM configuration memory to do that or it's not necessary with large XML files? Thanks a lot for you, Cheers, Diana ALLAM >> I look to the JavaDoc documentation, and I found it's difficult to know >> which classes must I choose and which function can I use, isn't any >> documentation about using the source code? >> In fact, I'm not interesting in the JTY or Tomcat server because my >> project will be a simple java project having a specified user interface >> without servlet. > > You can use the libraries described here - > http://www.exist-db.org/deployment.html#N1040E > > But instead of the code examples there just use the Fluent API, you > can find it in $EXIST_HOME/extensions/fluent > > org.exist.fluent.Database is your entry point into embedded development. > > You can find very good examples is the Fluent test cases - > > $EXIST_HOME/extensions/fluent/test/src/org/exist/fluent > >> >> Could I have please a part of the source code which will be sufficient >> to >> enter an XML files (or load it) and to execute queries in XQuery, XPath >> and XSLT? If not, which classes must I use to get my goal? >> >> Thanks in advance for your help, >> >> Diana ALLAM >> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Exist-open mailing list >> Exi...@li... >> https://lists.sourceforge.net/lists/listinfo/exist-open >> > > > > -- > Adam Retter > > eXist Developer > { United Kingdom } > ad...@ex... > irc://irc.freenode.net/existdb > |
From: James F. <jam...@gm...> - 2010-05-05 10:51:54
|
On Wed, May 5, 2010 at 12:39 PM, Adam Retter <ad...@ex...> wrote: > On 3 May 2010 10:10, James Fuller <jam...@ex...> wrote: >> addenda: >> I removed calabash.jar and saxon9pe.jar from lib/user for now until we >> figure out how we want to deploy ... you will need to download and install >> these jars yourself to test for now. > > Great stuff, I look forward to playing with this when I have a moment. > > I just modified the build configuration so that it will download those > two libs for you if you are building from source. thx man, btw the current xmlcalabash extension is naive at the moment, but this will change in a bit ... going gangbusters on eXist xproc now. ta, J |
From: Adam R. <ad...@ex...> - 2010-05-05 10:40:01
|
On 3 May 2010 10:10, James Fuller <jam...@ex...> wrote: > addenda: > I removed calabash.jar and saxon9pe.jar from lib/user for now until we > figure out how we want to deploy ... you will need to download and install > these jars yourself to test for now. Great stuff, I look forward to playing with this when I have a moment. I just modified the build configuration so that it will download those two libs for you if you are building from source. Cheers Adam. > On 3 May 2010 09:27, James Fuller <jam...@ex...> wrote: >> >> Hello, >> Just wanted to announce that we now have XML Calabash [1] integrated as an >> extension with eXist. >> This allows us to use more sophisticated XProc processing whilst I build >> eXist own XProc implementation (which I have a planned upcoming release). >> -------------------- >> Dependencies >> -------------------- >> * lib/user/calabash.jar - I have programmed extension so we should >> just be able to 'drop in' latest version of XML Calabash >> * lib/user/saxon9pe.jar - needed as saxon is primary dep >> ------- >> Build >> ------- >> * edit your local.build.properties (or build.properties) >> >> include.module.xmlcalabash = true >> * rebuild eXist >> ---------- >> Enable >> ---------- >> * edit your conf.xml >> <module class="org.exist.xquery.modules.xmlcalabash.XMLCalabashModule" >> uri="http://xmlcalabash.com" /> >> * restart eXist >> ---------- >> Usage >> ---------- >> * upload an XProc pipeline somewhere into eXist (ex. >> /db/xmlcalabash/pipe.xml) >> <?xml version="1.0"?> >> <p:declare-step version="1.0" xmlns:p="http://www.w3.org/ns/xproc"> >> <p:input port="source"> >> <p:inline><doc>Helloworld</doc></p:inline> >> </p:input> >> <p:output port="result"/> >> <p:identity/> >> </p:declare-step> >> >> * invoke using xmlcalabash:process (in sandbox for example) >> let $result := >> xmlcalabash:process("xmldb:exist:///db/xmlcalabash/pipe.xml","-") >> return >> $result >> ---------- >> Status >> ---------- >> Currently there are a few limitations with this extension >> * func signature will change soon to accept xml for pipeline, output, as >> well as specify input/output/parameter ports and options ... for now its >> primitive >> * function returns a string (which you can parse back into xml using eXist >> function) ... need to stay this way for a little bit during testing, will >> add smart serialization in a bit >> * p:xquery has no context with eXist ... this is a big limitation, but >> there are several ways around this >> * use xmldb:exist type URI >> * no documentation, will probably add to existing XProc area >> I wanted to 'throw over the wall' the draft version of this extension so I >> can get feedback now. >> thx, J >> [1] XML Calabash - http://xmlcalabash.com/ > > ------------------------------------------------------------------------------ > > _______________________________________________ > Exist-development mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-development > > -- Adam Retter eXist Developer { United Kingdom } ad...@ex... irc://irc.freenode.net/existdb |
From: Adam R. <ad...@ex...> - 2010-05-05 08:51:28
|
> I look to the JavaDoc documentation, and I found it's difficult to know > which classes must I choose and which function can I use, isn't any > documentation about using the source code? > In fact, I'm not interesting in the JTY or Tomcat server because my > project will be a simple java project having a specified user interface > without servlet. You can use the libraries described here - http://www.exist-db.org/deployment.html#N1040E But instead of the code examples there just use the Fluent API, you can find it in $EXIST_HOME/extensions/fluent org.exist.fluent.Database is your entry point into embedded development. You can find very good examples is the Fluent test cases - $EXIST_HOME/extensions/fluent/test/src/org/exist/fluent > > Could I have please a part of the source code which will be sufficient to > enter an XML files (or load it) and to execute queries in XQuery, XPath > and XSLT? If not, which classes must I use to get my goal? > > Thanks in advance for your help, > > Diana ALLAM > > > ------------------------------------------------------------------------------ > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open > -- Adam Retter eXist Developer { United Kingdom } ad...@ex... irc://irc.freenode.net/existdb |
From: Dannes W. <da...@ex...> - 2010-05-04 20:16:11
|
Hi, On Tue, May 4, 2010 at 12:26 PM, Diana ALLAM <dia...@et...> wrote: > I'm actually working on my final student project, and I have to use some > xml files in Java to extract some information from it, to update it or to > transform it. > Could I have please a part of the source code which will be sufficient to > enter an XML files (or load it) and to execute queries in XQuery, XPath > and XSLT? If not, which classes must I use to get my goal? Probably you could have a look at the 'fluent' extension, which is basically a Java5 style interface around 'embedded mode' of exist-db. It should be good enough for your needs. Why not run eXist-db as a server and access it from your java application using via REST interface? Probably easy to do. The samples directory contains a number of examples on how to use the eXist-db APIs. cheers Dannes -- eXist-db Native XML Database - http://exist-db.org Join us on linked-in: http://www.linkedin.com/groups?gid=35624 |
From: James F. <jam...@ex...> - 2010-05-03 09:10:09
|
addenda: I removed calabash.jar and saxon9pe.jar from lib/user for now until we figure out how we want to deploy ... you will need to download and install these jars yourself to test for now. thx, J On 3 May 2010 09:27, James Fuller <jam...@ex...> wrote: > Hello, > > Just wanted to announce that we now have XML Calabash [1] integrated as an > extension with eXist. > > This allows us to use more sophisticated XProc processing whilst I build > eXist own XProc implementation (which I have a planned upcoming release). > > -------------------- > Dependencies > -------------------- > > * lib/user/calabash.jar - I have programmed extension so we should just > be able to 'drop in' latest version of XML Calabash > > * lib/user/saxon9pe.jar - needed as saxon is primary dep > > ------- > Build > ------- > > * edit your local.build.properties (or build.properties) > > include.module.xmlcalabash = true > > * rebuild eXist > > ---------- > Enable > ---------- > > * edit your conf.xml > > <module class="org.exist.xquery.modules.xmlcalabash.XMLCalabashModule" > uri="http://xmlcalabash.com" /> > > * restart eXist > > ---------- > Usage > ---------- > > * upload an XProc pipeline somewhere into eXist (ex. > /db/xmlcalabash/pipe.xml) > > <?xml version="1.0"?> > <p:declare-step version="1.0" xmlns:p="http://www.w3.org/ns/xproc"> > <p:input port="source"> > <p:inline><doc>Helloworld</doc></p:inline> > </p:input> > <p:output port="result"/> > <p:identity/> > </p:declare-step> > > > * invoke using xmlcalabash:process (in sandbox for example) > > let $result := > xmlcalabash:process("xmldb:exist:///db/xmlcalabash/pipe.xml","-") > return > $result > > ---------- > Status > ---------- > > Currently there are a few limitations with this extension > > * func signature will change soon to accept xml for pipeline, output, as > well as specify input/output/parameter ports and options ... for now its > primitive > > * function returns a string (which you can parse back into xml using eXist > function) ... need to stay this way for a little bit during testing, will > add smart serialization in a bit > > * p:xquery has no context with eXist ... this is a big limitation, but > there are several ways around this > > * use xmldb:exist type URI > > * no documentation, will probably add to existing XProc area > > I wanted to 'throw over the wall' the draft version of this extension so I > can get feedback now. > > thx, J > > [1] XML Calabash - http://xmlcalabash.com/ > |
From: James F. <jam...@ex...> - 2010-05-03 07:50:16
|
Hello, Just wanted to announce that we now have XML Calabash [1] integrated as an extension with eXist. This allows us to use more sophisticated XProc processing whilst I build eXist own XProc implementation (which I have a planned upcoming release). -------------------- Dependencies -------------------- * lib/user/calabash.jar - I have programmed extension so we should just be able to 'drop in' latest version of XML Calabash * lib/user/saxon9pe.jar - needed as saxon is primary dep ------- Build ------- * edit your local.build.properties (or build.properties) include.module.xmlcalabash = true * rebuild eXist ---------- Enable ---------- * edit your conf.xml <module class="org.exist.xquery.modules.xmlcalabash.XMLCalabashModule" uri="http://xmlcalabash.com" /> * restart eXist ---------- Usage ---------- * upload an XProc pipeline somewhere into eXist (ex. /db/xmlcalabash/pipe.xml) <?xml version="1.0"?> <p:declare-step version="1.0" xmlns:p="http://www.w3.org/ns/xproc"> <p:input port="source"> <p:inline><doc>Helloworld</doc></p:inline> </p:input> <p:output port="result"/> <p:identity/> </p:declare-step> * invoke using xmlcalabash:process (in sandbox for example) let $result := xmlcalabash:process("xmldb:exist:///db/xmlcalabash/pipe.xml","-") return $result ---------- Status ---------- Currently there are a few limitations with this extension * func signature will change soon to accept xml for pipeline, output, as well as specify input/output/parameter ports and options ... for now its primitive * function returns a string (which you can parse back into xml using eXist function) ... need to stay this way for a little bit during testing, will add smart serialization in a bit * p:xquery has no context with eXist ... this is a big limitation, but there are several ways around this * use xmldb:exist type URI * no documentation, will probably add to existing XProc area I wanted to 'throw over the wall' the draft version of this extension so I can get feedback now. thx, J [1] XML Calabash - http://xmlcalabash.com/ |
From: Evgeny G. <gaz...@gm...> - 2010-05-01 10:35:22
|
Hello! Like we have very old not solved bug. eXist is returning Content-Type header equaled to "text/xml" for all xml docs, when for binary resources one is returning right mime type. ------- Evgeny |