Hi Matt,
Just replace
>component.getServers().add( Protocol.
with
component.getClients().add(Protocol.FILE);
The FILE protocol has been designed to be a client protocol (see the
javadocs =>
http://www.restlet.org/documentation/1.1/api/org/restlet/data/Protocol.html#FILE).
Best
regards,
Thi
Hi,
On Nov 17, 2008, at 12:47 AM, Gan123 wrote:
i am new to restlet, just started exploring on this. please
tell me
the use of Finder class in restlet. how is it different from Router
class?
Finders and Routers are both types of Restlets. A Router maps from a
URI to some (singleton
Hi,
i am new to restlet, just started exploring on this. please tell me
the use of Finder class in restlet. how is it different from Router class?
--
View this message in context:
http://n2.nabble.com/use-of-Finder-class-tp1508321p1508321.html
Sent from the Restlet Discuss mailing list a
keke gmail.com> writes:
>
>
> Have you add FILE protocol into your Component? Like
> component.getClients.add(Protocol.FILE)
>
> On Sun, Nov 16, 2008 at 12:54 PM, Matt randomcreation.com>
> wrote:
> "WARNING: No available server connector supports the required protocols: FILE
> .
> Please a
Hi Rob,
That worked a treat. Thanks! :-)
Code which looks like the following ensures a Status and LocationRef
are picked up in Restlet-GWT:
@Override
public void storeRepresentation(Representation entity) throws
ResourceException {
addSomething();
getResponse().setEntity(new StringRepr
Hello,
I'm not aware this feature has been removed. Are you sure that you are
using Restlet 1.1?
Anyway, in both 1.0 and 1.1 releases, you can have a fine control with
the allow* methods.
If your resource supports POST methods, you can either set the
"modifiable" attribute (in this case the re
Hello,
this is simply called content negotiation (handled on server side). The
HTTP protocol allows the HTTP client to set its preferences in some
dedicated headers (ACCEPT, ACCEPT-LANGUAGE, etc. See =>
http://en.wikipedia.org/wiki/Content_negotiation).
You can check the headers sent by your I
Hi Damian,
if you want to keep your resources intact, just add a filter as the root
Restlet of yourRestlet application which tests the Response status in
the "afterHandle" method.
best regards,
Thierry
Hi Damian,
This is due to an issue in the embedded Tomcat server used in GWT
Hosted M
Hi Damian,
This is due to an issue in the embedded Tomcat server used in GWT Hosted
Mode. When sending a redirect, you must (ignoring the Restlet warning to
the contrary) supply some sort of entity. Otherwise, the hosted mode Tomcat
server will replace it with a generic 200 response. It's not c
Hi everyone,
I'm using Restlet on the server side and Restlet-GWT on the client
side. I'm having difficulties getting a Status and LocationRef to
filter through from the server to the client.
On the server side, I am doing the following:
@Override
public void storeRepresentation(Representation
Hi
setModifiable(boolean arg); seems to be removed from version 1.1
I don't know how to make Resource acceptRepresentation()
Thanks
Hi
Please verify the following:
I understand that a Resource should at least determine one Variant in its
Resource.getVariants() list which will probably created by "new Variant()" to
initialize the media type; where every resource should response with a
MediaType.
I understand that you can
12 matches
Mail list logo