Hi All,
I'm facing the following problem.
Using MediaShelf fedora client i'm trying to invoke a method (which
can take params) called 'list' on given object. If no params are given
everything works well.
-------------------------------------------
FedoraResponse response = new GetDissemination(.., ..., "list").execute(fedora);
---------------------------------------------
If I add params:
FedoraResponse response = new GetDissemination(..,
...,
"list?param1=xxx:xxx¶m2=xxx:yyy").execute(fedora);
-----------------------------------------------------------------------
I get the exception
Caused by: org.fcrepo.server.errors.MethodNotFoundException:
[getParms] The service deployment object, xxx:objImpl, does
not have a service method named
'list%5C%3Fparam1=xxx:xxx¶m2=xxx:yyy
at
org.fcrepo.server.storage.SimpleServiceDeploymentReader.getParms(SimpleServiceDeploymentReader.java:122)
at
org.fcrepo.server.storage.SimpleServiceDeploymentReader.getServiceMethodParms(SimpleServiceDeploymentReader.java:86)
......
I looked inside getDissemination class:
public FedoraResponse execute(FedoraClient fedora) throws FedoraClientException
{
WebResource wr = fedora.resource();
String path = String.format("objects/%s/methods/%s/%s", pid, sdefPid,
method);
ClientResponse cr =
wr.path(path).queryParams(getQueryParams()).get(ClientResponse.class);
return new FedoraResponseImpl(cr);
}
Is there any way to make a method working with params?
Best regards,
Damian
------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery,
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now.
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users