hi,Sébastien!
You can check out restlet new code from SVN with eclipse svn
plugin:subclipse(http://subclipse.tigris.org/).
Or search related version from http://www.restlet.org/downloads/archives/.
I have used restlet for a couple of months.I have never met your problem.
Before you define a statusservice,pls make a customize status service
class,for example:
public class CustomizedStatusService extends StatusService {
public CustomizedStatusService(boolean enabled) {
super(enabled);
}
@Override
public Representation getRepresentation(
Status status,
Request request,
Response response){
if (status.equals(Status.CLIENT_ERROR_NOT_FOUND)){
return new StringRepresentation(
"Sorry,Not Found",
MediaType.TEXT_PLAIN,
Language.ALL,
CharacterSet.UTF_8
);
}
else{
return null;
}
}
}
And then,set application's statusservice with it:
application.setStatusService(new CustomizedStatusService(true));
On Jan 30, 2008 12:24 PM, Sébastien <[EMAIL PROTECTED]> wrote:
> Hi Jerome,
>
> Actually I found the issue, somehow after the jar was downloaded and
> imported into the project and checked in SVN it got corrupted. Really
> weird indeed. However the jar that is downloadable on the web site is
> good.
>
> Thanks,
>
> Sébastien
> [EMAIL PROTECTED]
>
>
>
>
> On Jan 26, 2008, at 12:05 PM, Jerome Louvel wrote:
>
> >
> > Hi Sébastien,
> >
> > This is quite strange indeed. If you still have the issue, could you
> > enter a
> > bug report in our issue tracker?
> >
> > Best regards,
> > Jerome
> >
> >> -----Message d'origine-----
> >> De : Sébastien [mailto:[EMAIL PROTECTED]
> >> Envoyé : jeudi 24 janvier 2008 21:51
> >> À : [email protected]
> >> Objet : restlet.jar is missing methods for Application?
> >>
> >> Hi,
> >>
> >> I just ran into an interesting problem with 1.0.7.
> >>
> >> When trying to extend the Application class for my app and override
> >> the super class method: setStatusService
> >> I kept getting: "The method setStatusService(myStatusService) is
> >> undefined for the type myApplication"
> >>
> >> After browsing the JAR in Eclipse I actually found out that this
> >> method was not present to my great surprise...
> >>
> >> I then had a look at the source code distributed via the
> >> 1.0.7 tar.gz
> >> and found the missing method, so I directly included the source for
> >> org.restlet into my Eclipse project and then everything
> >> compiled fine
> >> then!
> >>
> >> Is the jar supplied for 1.0.7 missing those methods for some reason?
> >>
> >> Just thought I would ask since somebody ought to have run
> >> across this
> >> issue before me.
> >>
> >> Cheers!
> >>
> >> Sébastien=
> >
>
>
--
cleverpig
Location: Beijing
Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China
Zipcode: 100031
Phone: 010-66415588-1113
MSN: [EMAIL PROTECTED]
QQ: 149291732
Skepe: cleverpigatmatrix
My Facebook ID:cleverpig
My Blog: hihere.sohu.com
My Tags: del.icio.us/cleverpig
My Twitter: twitter.com/cleverpig
My Organization: www.beijing-open-party.org
一些值得关注的唧歪:
http://jiwai.de/t/jmatrix/
http://jiwai.de/t/db4o/
http://jiwai.de/t/matrix-community/