how to get an init-param from web.xml

2011-02-07 Thread Randy Paries
hello, I my web.xml i have the following: servlet servlet-nameAppServlet/servlet-name servlet-class org.restlet.ext.servlet.ServerServlet /servlet-class init-param param-namedefaultGatewayID/param-name param-value1/param-value /init-param /servlet

RE: Re: Re: Re: Re: Need help understanding the correct FLOW

2011-02-02 Thread Randy Paries
Fabian thanks alot for all your help I now have that working. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2701983

RE: Re: Re: Re: Need help understanding the correct FLOW

2011-01-31 Thread Randy Paries
in the right direction... On Sat, Jan 29, 2011 at 3:43 PM, Randy Paries rtparies at gmail dot com wrote: Fabian, i am getting closer,  but i am one step away i think. each time my service is called i pass in an encrypted string I decrypt it and in my ChallengeAuthenticator i have

how do i get the server name

2011-01-29 Thread Randy Paries
Hello, i can not figure out how to get the localPort and server name from the Request In my resource i need to build a URI in my XML, but i need to get the localport and servername. from a normal servlet i just request.getServerName(); request.getLocalPort(); my server extends Application it

RE: how do i get the server name

2011-01-29 Thread Randy Paries
so this appears to work: Map attributes = getRequestAttributes(); Form responseHeaders = (Form) attributes.get(org.restlet.http.headers); System.out.println(responseHeaders.getFirst(host)); not sure if this is the correct way, but also does not help me getting getLocalPort();

RE: Re: Re: Need help understanding the correct FLOW

2011-01-29 Thread Randy Paries
and provides you with many possibilities to handle authentication. OTOH, that flexibility means a little more work on your side to implement the authentication 'architecture' the way you want or need it. On Wed, Jan 26, 2011 at 7:46 PM, Randy Paries rtparies at gmail dot com wrote: Fabian

RE: Re: Need help understanding the correct FLOW

2011-01-26 Thread Randy Paries
Fabian , thanks for the response. that helped, i am now getting closer. So there is one last part i am not getting. from the book there is the example //snippet @Override public Restlet createInboundRoot() { Router router = new Router(getContext()); MapVerifier verifier = new

is there a place for newbies to ask questions

2011-01-21 Thread Randy Paries
Hello, I there somewhere that i am missing that newbies can answer questions? It appears that this forum is not the correct place. There is a lot of unanswered questions. I have bought the book but it appears that the only option at this point is to purchase the support from the guys that own

Need help understanding the correct FLOW

2011-01-20 Thread Randy Paries
Hello, I am trying to create a RESTful application Server. I am going to use the RestLet framework. As i am designing the URL's i have some questions. This app server is going to be the backend for an iPhone app. The app will require authentication So here is where i get a little confused with

help with the correct way to authorize

2011-01-19 Thread Randy Paries
hello, So i am learning via the fire-hose. i have been reading the RestletinAction book and i need some direction on how best to use it in my env. I have someone creating an iphone app thats going to be calling my existing web app and wants to communicate RESTFUL (i hope that is saying it

downloaded restlet-jee-2.0.4 seems to be missing

2011-01-14 Thread Randy Paries
I am trying to get a hello world of restlet working i downloaded restlet-jee-2.0.4 i am getting the exception java.lang.NoClassDefFoundError: com/google/gwt/user/server/rpc/SerializationPolicyProvider i am following this