Hi Pete,
Welcome! The answer is to use request.getEntityAsForm(), then check
the Form class for access methods.
Best regards,
Jerome
2007/8/21, Pete [EMAIL PROTECTED]:
in the handlePost method of my resource class, request.getEntity().getText()
returns me a query string like a=bc=de=f etc.
Jim Edwards-Hewitt jimeh at surety.com writes:
In addition to standard access log messages, I'm getting a message from
afterHandle on every access:
Jun 8, 2007 4:12:26 PM com.noelios.restlet.LogFilter afterHandle
This doesn't really provide any useful information for my application. I
Whoops,
clientInfo.setAcceptedMediaTypes(new ArrayListPreferenceMediaType().);
should be:
clientInfo.setAcceptedMediaTypes(new ArrayListPreferenceMediaType());
Jonathan Hall wrote:
Hi,
try something like:
ClientInfo clientInfo = new ClientInfo();
clientInfo.setAcceptedMediaTypes(new
On 8/18/07, Jerome Louvel [EMAIL PROTECTED] wrote:
Alex,
The serverAddress property indeed does comparisons based on the
numerical IP address. There are some convenience static methods on
VirtualHost:
- getLocalHostAddress()
- getIpAddress(String domain)
This seems a bit
Hi,
the subject of this issue seems to be the content negociation algorithm.
On one side, the client lists all media types he knows or is able to
manage (the accepted media types).
On the other side, the server is able to serve several representations
of the same resource.
The aim of the
I have both matching variants. Both client and server use Java Object.
But the client is requesting plain text.
Thierry Boileau wrote:
Hi,
the subject of this issue seems to be the content negociation
algorithm. On one side, the client lists all media types he knows or
is able to manage
I don't have a request.setClientInfo() in my request object. Do I have
an older version? I'm using 1.0.4.
Jonathan Hall wrote:
Whoops,
clientInfo.setAcceptedMediaTypes(new
ArrayListPreferenceMediaType().);
should be:
clientInfo.setAcceptedMediaTypes(new ArrayListPreferenceMediaType());
Ah, I am running from http://www.restlet.org/downloads/archives/1.1/
Jerome wrote:
Now that the 1.0 code base seems to be quite stable it is time to move
forward. We have just created a maintenance branch for 1.0 in SVN.
From now on, the SVN trunk will be dedicated to the upcoming version 1.1.
Did did see a Representation in the Request constructor. Is that what I
should use. I'll try that.
Stanczak Group wrote:
I don't have a request.setClientInfo() in my request object. Do I have
an older version? I'm using 1.0.4.
Jonathan Hall wrote:
Whoops,
So how do I use 1.0 to get objects?
Jonathan Hall wrote:
Ah, I am running from http://www.restlet.org/downloads/archives/1.1/
Jerome wrote:
Now that the 1.0 code base seems to be quite stable it is time to
move forward. We have just created a maintenance branch for 1.0 in SVN.
From now on,
Should I even be using object?
Stanczak Group wrote:
So how do I use 1.0 to get objects?
Jonathan Hall wrote:
Ah, I am running from http://www.restlet.org/downloads/archives/1.1/
Jerome wrote:
Now that the 1.0 code base seems to be quite stable it is time to
move forward. We have just
request.getClientInfo().getAcceptedMediaTypes().add(new
PreferenceMediaType(MediaType.APPLICATION_JAVA_OBJECT));
I only used the new ClientInfo() before in order to make sure it was the
only MediaType.
If you still have a problem try seeing what other mediatypes are in the
Hard to say without knowing what you are doing :)
Using ObjectRepresentation for a String is strange if that is your
usecase as it is meant for a serializable Java object.
If you are just wanting to pass plain text then you should use the
following:
if
13 matches
Mail list logo