문제

When I tried to execute the "FirstResource" Example :

http://restlet.org/learn/2.0/firstResource

I have an error in this line caused by getIdentifier():

itemResource = new ClientResource(r.getIdentifier());

How can I resolve this error?

Thanks for your help.

도움이 되었습니까?

해결책

I think this method has been replaced by Representation#getLocationRef

다른 팁

there're some changes between restlet2.1.2 and restlet2.0.*, you can read the example in your install path\src\org.restlet.example package, then you will find the changed points between the two editions!

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top