Hi
I know I can set the ETAG and LastModified properties on
Representation/RepresentationInfo.
But I have a simple resource implemented like this :
public class AccountServerResource extends ServerResource implements
AccountResource {
private static Logger log =
Logger.getLogger(Accou
It looks like this is the problem, in
org.restlet.ext.jaxrs.internal.util.Util:
/**
* Checks, if the given class is a JAX-RS root resource class.
*
* @param jaxRsClass
*the class to check
* @return true, if the class is a JAX-RS root resource class, otherw
In the example here:
http://wiki.restlet.org/docs_2.1/13-restlet/28-restlet/57-restlet.html
The resource class is a concrete class: public class EasyRootResource
How would you do this if the resource was an interface?
--
View this message in context:
http://restlet-discuss.1400322.n2.nabble.com
What version of Jackson are you using. TokenBuffer was introduced in 1.5.
--tim
On Wed, Jan 25, 2012 at 9:04 AM, Domnic wrote:
> Hi there,
> I am having an AlertServerResource.java which extends a ServerResource.
>
> I am trying to process a PUT request like,
> @Put
> public Representation stor
I think it's a bug. I created a JUnit test here to demonstrate it:
http://pastebin.com/xfvC6y2a
The two resource hierarchies are identical except that in one case the
@Post annotation is on the generic version of the method and in the other
it isn't. That's enough to confuse the machinery in Anno
My conclusion from this test is that the client resource proxy mechanism,
in conjunction with the built-in status service, doesn't exactly reproduce
on the client side the status passed to the constructor of
the ResourceException thrown on the server side. It comes close: It gets
the code and reaso
I just modified this example to turn it into a JUnit test.
On Tue, Jan 24, 2012 at 11:05 PM, Tim Peierls wrote:
> I get the correct status code on the client side. Run this code:
>
> http://pastebin.com/3nzsjFi1
>
> The description I set on the server side is not passed to the client side.
>
> -
Hi there,
I am having an AlertServerResource.java which extends a ServerResource.
I am trying to process a PUT request like,
@Put
public Representation storeContact(
Representation representation, Variant variant) {
Alert miAlert = (new JacksonRepresentati
If you use an annotated interface like
[CODE]
interface CRUDHandler{
@Post
public Object handlePost(T request);
}
[/CODE]
Parameter conversion does not work, because Restlet can't figure out T. It
should find it on the implementing class, but Restlet uses the interface to
resolve th
Hi there,
I'm pretty new to RESTlet so I apologize in advance if this is a dumb question.
We're developing a library which adds a JSON abstraction layer on top of
RESTlet and which only depends on the core APIs and org.restlet.ext.jackson. It
does not place any constraints on the application en
10 matches
Mail list logo