Re: restlet server

2008-03-18 Thread Jahid
Hi,

its nice hearing that in 1.1M4 we are going to have facilities to deploy war
project in restlet server. It will be really nice if we can have some running
example of how to deploy and run war.

I tried with restlet server, but filed to deploy war in restlet server. So,
right at this moment I am using jetty for that. using jetty was pretty easy
through maven plugin. so, if restlet server can comeup with such easy running
web app, then it would be nice.


Regards,



Jahid



Re: restlet server

2008-03-17 Thread Jahid

Actually, i am using Echo2 framework. I want to deploy or run my developed Echo2
in restlet server. but have no clue how to do that.

please, any help?




restlet server

2008-03-17 Thread Jahid
Hi,

Is there any way to point restlet server to a full web app? I mean the web app
is having directory structure as a regular web app with WEB-INF, META-INF.
web.xml.

I want restlet server to use that web.xml. I mean, is it possible use restlet
server to work exactly like it will work if i deploy that web app war in a
regular server (tomcat, jboss)

Working code or examples will be really helpful.


Regards



Jahid



Re: Error on server

2008-03-10 Thread Jahid
Hi Jerome,

I was using 1.0.7, then i moved to use 1.0.8 as you mentioned on your last post.
But still the problem is same. Please if you think that there is some other way
to solve this. Please let me know. This is really important for me.


Thanks a lot for replying.


Regards,


Jahid




Error on server

2008-03-09 Thread Jahid
Hi,

I am using restlet server. the error is not happeing inside my code,
this error is happening after control left my code and 
while its inside the server.

INFO: Exception while consuming the Simple request's input stream
java.io.IOException: Stream closed
at simple.http.MonitoredInputStream.ensureOpen
(MonitoredInputStream.java:184)
at simple.http.MonitoredInputStream.read
(MonitoredInputStream.java:83)
at java.io.FilterInputStream.read(FilterInputStream.java:66)
at
com.noelios.restlet.ext.simple.SimpleProtocolHandler.handle
(SimpleProtocolHandler.java:77)
at simple.http.Dispatcher.run(Dispatcher.java:83)
at simple.util.process.Daemon.execute(Daemon.java:121)
at simple.util.process.Daemon.run(Daemon.java:106)

Thanks in advance.

Regards,

Jahid



Re: Session

2008-03-05 Thread Jahid
So,

Actually in other words, RESTlet is not really stateless, but its possible (or
probably left for the developers to maintain their own session/state. And yes, I
have just done that, i developed my part of code which maintains a session
concept. Though its saved with application state.





Session

2008-03-05 Thread Jahid
Hi,

Is there any session on server side? I was looking for session or session type
something in API documentation. But I didn't fine any.

So the question is, is there any session object on server side? If yes, what
class is that and how to use that? If no, then how we maintain have some memory
bases data saving on server side?


Regards,


Jahid



Authentication Header

2008-03-04 Thread Jahid
Hi,

On server side, I am trying to set a header which will look like this 

"ABC realm="", challenge-container="salkfadfo823w9283oinfskefn2398wenfdsk";

Can anyone tell me how can I achieve that? Here I want to mention that, I
dont/can't change the challenge format. So, don't ask me to do that :), also i
want the challenge to go on server side as "WWW-Authenticate" header with a
status code 201.

Thanks in advance.

Regards,
Jahid



How to set non-standard headers

2008-01-07 Thread Md . Jahid Shohel
Hi,

Can anyone tell me, how can I set non-standard hears in Response object from
server side. So that client can fetch that.

Thanks in advance.

Regards,


Jahid


Re: Fetching non-standard headers on client side

2008-01-05 Thread Md . Jahid Shohel


Hi Rob,

Thanks, but I have tried that way too. But still I don't get my non-standard
header value. I am wondering, whether that feature of getting non-standard
header from Response is there in version 1.0.4. Do you have any idea? Or you
have any slice of code where you have used that, fetching of non-standard header
on client side?


Regards,


Jahid






Fetching non-standard headers on client side

2008-01-04 Thread Md . Jahid Shohel
Hi,

I am trying to develop a fat client, I mean there will be a client
implementation to access server services instead of browser. I am facing a
problem on fetching non standard headers on client side. I have set the header
on client side, and it was set correctly. I can see that header if I access the
service through any browser. But if I use Restlet client to access the service,
then I don't get those headers. The way I have done is ---

Response response=client.handle(request);
Map attributes=response.getAttributes();


But this attribute map doesn't contains my non-standard header. I have searched
though both key and the object of the above attribute map, but didn't find my
non-standard header. Any idea how to resolve this problem? Here I want to
mention that, I am using Restlet 1.0.4.


Looking forward for your response.


Regards,



Jahid


Fetching non-standard headers on client side

2008-01-04 Thread Md . Jahid Shohel
Hi,

I am trying to develop a fat client, I mean there will be a client
implementation to access server services instead of browser. I am facing a
problem on fetching non standard headers on client side. I have set the header
on client side, and it was set correctly. I can see that header if I access the
service any browser. But if use restlet client to access the service, then I
don't get those headers. The way I have done is ---

Map attributes=form.getAttributes();


But this attribute map doesn't contains my non-standard header. Any idea how to
resolve this problem? Here I want to mention that, I am using restlet 1.0.4.


Looking forward for your response.


Regards,



Jahid