<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.comp.java.restlet">
    <title>gmane.comp.java.restlet</title>
    <link>http://blog.gmane.org/gmane.comp.java.restlet</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.restlet/7002"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.restlet/7000"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.restlet/6980"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.restlet/6965"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.restlet/6964"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.restlet/6963"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.restlet/6958"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.restlet/6954"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.restlet/6943"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.restlet/6940"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.restlet/6933"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.restlet/6920"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.restlet/6918"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.restlet/6911"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.restlet/6909"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.restlet/6905"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.restlet/6894"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.restlet/6893"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.restlet/6885"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.restlet/6878"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.restlet/7002">
    <title>java.lang.AbstractMethodError: org.restlet.util.Engine.fireContextChanged</title>
    <link>http://comments.gmane.org/gmane.comp.java.restlet/7002</link>
    <description>Just upgraded to Restlet 1.1.1 (using Maven), and I'm seeing the
following error when I attempt to call a unit test that worked
previously, any ideas? :-

Caused by: java.lang.AbstractMethodError:
org.restlet.util.Engine.fireContextChanged(Lorg/restlet/Restlet;Lorg/restlet/Context;)V
at org.restlet.Restlet.&lt;init&gt;(Restlet.java:90)
at org.restlet.Connector.&lt;init&gt;(Connector.java:83)
at org.restlet.Client.&lt;init&gt;(Client.java:82)
at org.restlet.Client.&lt;init&gt;(Client.java:101)
at org.restlet.Client.&lt;init&gt;(Client.java:121)

</description>
    <dc:creator>Ian Clarke</dc:creator>
    <dc:date>2008-12-01T05:44:06</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.restlet/7000">
    <title>after POST with a response of type DomRepresentation client hangson getting response?</title>
    <link>http://comments.gmane.org/gmane.comp.java.restlet/7000</link>
    <description>Hello there!

I just started to learn RESTlet framework and I am facing some strange issue I
can't handle. I've created the simple resource, which verifies if such user
exists and if so - returns the unique hash for the user. I also wrote the
simple test case, which starts the REST service and then sends the request to
authenticate the user. At this point there is the strange issue appearing:
when DomRepresentation is used, the test simply hangs on valid user (when the
response is sent), but when StringRepresentation is used - everything works
fine.

The code for the Service:

============================================================================================
import org.apache.log4j.Logger;
import org.restlet.Context;
import org.restlet.data.Form;
import org.restlet.data.MediaType;
import org.restlet.data.Request;
import org.restlet.data.Response;
import org.restlet.data.Status;
import org.restlet.resource.DomRepresentation;
import org.restlet.resource.Representation;
import org.restlet.resource.Res</description>
    <dc:creator>Eugeny N Dzhurinsky</dc:creator>
    <dc:date>2008-11-29T21:40:00</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.restlet/6980">
    <title>Posting a form with a file</title>
    <link>http://comments.gmane.org/gmane.comp.java.restlet/6980</link>
    <description>Hi all (my first post),

my question is concerning file upload within a form. I'm currenlty
using Restlet 1.1.1.
I have both client and server developed with Restlet.

I'd like to make a post call, sending 2 (key, value) pairs and a file.
I success this by making 2 post calls, one for the 2 (key, value)
pairs, simply using a Form and its WebRepresentation, and one for the
file, using a FileRepresenation (with a
MediaType.APPLICATION_OCTECT_STREAM, as my file could be a binary one
or a text one -it's a certificat-). That's works.

My question : is it possible to make only 1 post call including the 2
(key, value) pairs and the file (which can be binary or plain text) ?

Thanks in advance and sorry if my english isn't so clear :)

Regards,
Jérémy

</description>
    <dc:creator>Jérémy Bogatirsky</dc:creator>
    <dc:date>2008-11-26T16:33:55</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.restlet/6965">
    <title>ServletServlet example</title>
    <link>http://comments.gmane.org/gmane.comp.java.restlet/6965</link>
    <description>When I try to download the sample sources, 
http://www.restlet.net/source/browse/restlet/trunk/modules/org.restlet.example/src/org/restlet/example/dist/testServlet.zip,
referenced on the Restlet 1.1 - User FAQ page, I get the following not 
found message:

The requested URL 
/source/browse/restlet/trunk/modules/org.restlet.example/src/org/restlet/example/dist/testServlet.zip 
was not found on this server.

Does anyone know if it has moved, and if so, where?

Thanks in advance.

</description>
    <dc:creator>Mark Rosenthal</dc:creator>
    <dc:date>2008-11-25T22:37:49</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.restlet/6964">
    <title>Atom Extension: which RFC draft/version?</title>
    <link>http://comments.gmane.org/gmane.comp.java.restlet/6964</link>
    <description>Hi all,

I was starting to code a set of Resource classes which implement the 
Atom Publishing Protocol, and wanted to use the org.restlet.atom.ext 
extension, but it looks like this implements an older version.  For 
example, the Collection class still uses the "member-type" element of 
app:collection, which hasn't existed since draft 8.  Here are links to 
the latest version (RFC 5023) as well as the older drafts: 
http://bitworking.org/projects/atom/

I'll be glad to help out implementing the latest version of the spec if 
needed.

Thanks,

Thom

</description>
    <dc:creator>Thom Nelson</dc:creator>
    <dc:date>2008-11-25T22:29:19</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.restlet/6963">
    <title>Restlet "Directory" suggestion</title>
    <link>http://comments.gmane.org/gmane.comp.java.restlet/6963</link>
    <description>Thierry, et al,

I have been working with the "Directory" class, and running into
limitations.  I realized that because I am also running Tomcat, the built-in
webdav met my needs.  However--and because you were asking for
suggestions--I realized that the Directory class could easily be improved:

1) Allow for stylesheets, see Tomcat's WebdavServlet setup (localXsltFile,
and globalXsltFile).  Note that a URI (instead of a path) would be even
better.

2) Have the default representation return XHTML (instead of the current
nonX HTML).  This would allow a programmatic caller to read the list as XML
(a request from one of my users).

3) Add a simple authorization hook, or at least clearly describe how to
authorize access to certain directories.  Note that even in Tomcat, I had to
go digging through the code to figure out how to subclass.

4) Add full webdav capability.  Given that WebdavServlet is Apache
License--and not very big--it seems that you could easily support full
webdav out of the box.

Cliff Binstock</description>
    <dc:creator>Cliff Binstock</dc:creator>
    <dc:date>2008-11-25T17:16:15</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.restlet/6958">
    <title>calling PUT and DELETE</title>
    <link>http://comments.gmane.org/gmane.comp.java.restlet/6958</link>
    <description>
Hi,

         i am working on a web application using RESTlet, wanted to invoke
PUT and DELETE. some time back when i am searching for restlet resources i
came across one page where author discussing about invoking PUT and DELETE
using ajax, can any one tell me what URL that is available or  tell me how
it can be done? 

Thanks in advance  
</description>
    <dc:creator>Gan123</dc:creator>
    <dc:date>2008-11-24T14:07:50</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.restlet/6954">
    <title>Distributed Caching solution.</title>
    <link>http://comments.gmane.org/gmane.comp.java.restlet/6954</link>
    <description>
Among EHCache and Memcache which is the best one to choose for restful
application to work with distributed caching? 
</description>
    <dc:creator>Gan123</dc:creator>
    <dc:date>2008-11-24T13:10:42</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.restlet/6943">
    <title>TCP RST attack detected on file upload cut</title>
    <link>http://comments.gmane.org/gmane.comp.java.restlet/6943</link>
    <description>Hello,

I'm observing an odd situation where restlet is involved: pull the net
cable during file upload and router (hardware box, not Router.class)
detects TCP RST attack and blacklist our server for access from subnet.

This is the topology:
- office subnet: client application
- office router: NAT
- remove server: Apache HTTPS proxying to localhost
- remove server: Restlet with default HTTP connector

The behavior can be consistently reproduced with our setup and access to
remote server is temporarily blocked to entire office subnet. The client
application makes a GET and then a POST w/ a big file, so that I have
time to pull the plug, and that's it.

I tried reading a bit about TCP RST attack but so far I do not know how
to avoid this problem, except for disabling the attack detection in the
router or telling people not to pull the plug during upload. If anybody
has some insights to share, I appreciate.

Thanks,
Diego

</description>
    <dc:creator>Diego Ballve</dc:creator>
    <dc:date>2008-11-22T07:59:21</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.restlet/6940">
    <title>Usurping Directory</title>
    <link>http://comments.gmane.org/gmane.comp.java.restlet/6940</link>
    <description>I would like to modify the standard Directory to return something different
than "the" file when a file is encountered.  For example, peruse a directory
structure (default behavior), but when you get to the "bottom" (an actual
file), then return a report based on that file, instead of the file itself.

 

It appears that I need a custom "DirectoryResource" which is attached to a
"Directory" via #setTargetClass.   I have the following questions:

 

1.Setting the target class doesn't seem to be invoking the resource
2.I'm not sure what I would need to override to have custom behavior:
#getVariants?
3.Is there a better way to approach the problem?

 

 

Thanks in advance,

 

Cliff

 

</description>
    <dc:creator>Cliff Binstock</dc:creator>
    <dc:date>2008-11-21T22:53:48</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.restlet/6933">
    <title>how to Redirect...</title>
    <link>http://comments.gmane.org/gmane.comp.java.restlet/6933</link>
    <description>
Hi,

      Just started exploring restlet and trying to implement a simple
employee details info management app. it have two pages, one to create a new
employee. second that lists all employees. once the employee is created the
resource should be redirected to other resource which will list all the
employees. how i could do this either by giving URI or by giving second
resource ref in 1st resource?

Thanks in advance. 
</description>
    <dc:creator>Gan123</dc:creator>
    <dc:date>2008-11-21T15:01:01</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.restlet/6920">
    <title>Restlet MVC</title>
    <link>http://comments.gmane.org/gmane.comp.java.restlet/6920</link>
    <description>

      i am creating a web application using Restlet based on MVC. i have
configured ServlerServlet to invoke my Application class, where i have all
the URI mappings. i am planning to use the Application class as controller
and Resource to implement business logic with other required patterns. 

can any one suggest me whether this is the correct way to go ahead to
implement MVC application in RESTlet? how and when the Application will be
loaded? is it for every request or once per application ? 

Thanks in advance. 
</description>
    <dc:creator>Gan123</dc:creator>
    <dc:date>2008-11-21T07:09:59</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.restlet/6918">
    <title>Getting the Client address from request</title>
    <link>http://comments.gmane.org/gmane.comp.java.restlet/6918</link>
    <description>Hi there,
i am curious, is there any way to get the _real_ client address from
Request.getClientInfo()?

I am talking about the situation, when you have your Restlet App (whether
standalone, or running in Servlet Container) fronted by mod_proxy + httpd...

Something like this (example found on the net, in PHP):
http://www.zen-cart.com/forum/showpost.php?p=437632&amp;postcount=8

The ClientInfo.getAddresses() "smells" like right place to sniff around, but
i don't get the Javadoc and what it really does....



</description>
    <dc:creator>Tamás Cservenák</dc:creator>
    <dc:date>2008-11-20T18:41:53</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.restlet/6911">
    <title>removeRepresentations and setAvailable</title>
    <link>http://comments.gmane.org/gmane.comp.java.restlet/6911</link>
    <description>Hi

I'm testing my system to see how it handles a DELETE request to a
non-existent resource.  I'm expecting a 404 response.

Although I'm flagging my resource as unavailable in the constructor/init
method removeRepresentations still gets invoked, which means I have to
explicitly handle the 404 response.

Is this the correct behaviour?

Regards

Richard Hoberman

</description>
    <dc:creator>Richard Hoberman</dc:creator>
    <dc:date>2008-11-19T13:36:17</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.restlet/6909">
    <title>No available xxx connector supports the required protocols</title>
    <link>http://comments.gmane.org/gmane.comp.java.restlet/6909</link>
    <description>hello,

i'm a new user to the RESTlet library and i'm having problems getting few 
things done.  i would appreciate it if a seasoned user can point me to some 
documentation which can help me solve my problems.  i'll describe later the 
make-up of the test application in case it's known to have a bearing on the 
problems:

1. in my browser when i enter the url to the resource/page i want to go to i 
see in the logs the following:

Nov 19, 2008 8:16:06 PM org.restlet.Connector &lt;init&gt;
FINE: The connector has been instantiated without any protocol.
Nov 19, 2008 8:16:06 PM com.noelios.restlet.Engine createHelper
WARNING: No available client connector supports the required 
protocols: 'CLAP' 'FILE' 'HTTP' 'HTTPS' . Please add the JAR of a matching 
connector to your classpath.
Nov 19, 2008 8:16:06 PM com.noelios.restlet.Engine createHelper
WARNING: No available server connector supports the required 
protocols: 'HTTP' 'HTTPS' . Please add the JAR of a matching connector to 
your classpath.
Nov 19, 2008 8:16:06 PM</description>
    <dc:creator>Raif S. Naffah</dc:creator>
    <dc:date>2008-11-19T10:02:36</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.restlet/6905">
    <title>Restlet on IRC</title>
    <link>http://comments.gmane.org/gmane.comp.java.restlet/6905</link>
    <description>Have any community members ever considered a Restlet IRC channel--say, 
on Freenode? Any interest?

-jeff


</description>
    <dc:creator>Jeff Ramsdale</dc:creator>
    <dc:date>2008-11-19T00:24:42</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.restlet/6894">
    <title>[Tomcat] ETag dropped between Client and acceptRepresentation?</title>
    <link>http://comments.gmane.org/gmane.comp.java.restlet/6894</link>
    <description>Hi

THE SHORT VERSION: 

I'm using version 1.1.1.

I post an entity with an ETag using org.restlet.Client and get a null
ETag in acceptRepresentation.  This happens with Tomcat but not with the
standalone Restlet test.  I can't find any code that looks like it would
handle the propagation of the tag.  I've tried using a custom header as
a workaround but that has no effect either.

This is critical for my project.  Please help

THE LONG VERSION:

I'm trying to test a resource that uses an ETag when accepting a
representation.  Using org.restlet.Client:

Request request = new Request(Method.POST,
"http://localhost:8080/tag-test");
request.getClientInfo().getAcceptedMediaTypes().add(new
Preference&lt;MediaType&gt;(MediaType.APPLICATION_JSON));
request.setEntity("some text", MediaType.APPLICATION_JSON);
request.getEntity().setTag(new Tag("tag text"));
Client client = new Client(Protocol.HTTP);
Response response = client.handle(request);

When acceptRepresentation is called, there is no sign of the ETag:

public void a</description>
    <dc:creator>Richard Hoberman</dc:creator>
    <dc:date>2008-11-17T22:44:44</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.restlet/6893">
    <title>ERROR:  'Broken pipe'</title>
    <link>http://comments.gmane.org/gmane.comp.java.restlet/6893</link>
    <description>I've been seeing a lot of:

ERROR:  'Broken pipe'
Exception intercepted &lt; at &gt; HttpServerConverter.commit

lately.  What exactly does it mean?  How can I print out the  
exception?  And possible how to debug this?

I'm using Restlet 1.0.9.

- Paul

</description>
    <dc:creator>Paul J. Lucas</dc:creator>
    <dc:date>2008-11-17T21:51:52</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.restlet/6885">
    <title>Well HTTPS</title>
    <link>http://comments.gmane.org/gmane.comp.java.restlet/6885</link>
    <description>WANNING 
BRAIN OVERHEATING  /\
 
I have read this 
http://en.wikipedia.org/wiki/Https
and I want to implement HTTPS, in my sample application I converted component.getServers().add(Protocol.HTTP, 8182);to 
component.getServers().add(Protocol.HTTPS, 8182);
Now Jersy is asking me a lot of questions in the shell (key and pass),  I guess the answer and I wrote "me" as an answer for both questions!! 

/home/java/.keystore is not found and Exception is thrown...

Is .keystore our Public Key Certificate, if yes, Is it created using gensslcert??

and where is the private key?  

if HTTPS is authenticating both sides (as I hardly understand) then there must be one or two public keys and two private keys so server can authenticate client and client can authenticate browser. the browser will authenticate the server because server will send private key, (automatically I hope), 

if this is true how the server will authenticate the browser...

MOST important question how I get all of this implemented, Is there somethi</description>
    <dc:creator>M E</dc:creator>
    <dc:date>2008-11-17T14:30:37</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.restlet/6878">
    <title>port 80 does not work</title>
    <link>http://comments.gmane.org/gmane.comp.java.restlet/6878</link>
    <description>Hi

I added an HTTP server on port 80 using Restlet, it does NOT work, however it works on port 8080, why??

java.net.SocketException: Permission denied  it seems to be the first cause exception

My guesses
I don't get it, browser suppose to listen to port 80 for http, or it just a firewall issue, but it is localhost ip, further if it is firewall, how 8182 work without setting a rule!!

hmmm, I guess I don't get it!!

Thanks



      </description>
    <dc:creator>M E</dc:creator>
    <dc:date>2008-11-17T11:00:12</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.restlet/6877">
    <title>(Bug?) entity for "" receives null mediaType when deployed on Tomcat</title>
    <link>http://comments.gmane.org/gmane.comp.java.restlet/6877</link>
    <description>Hi

If I make a request using an empty string:

Request request = new Request(Method.POST, "http://localhost:8080/...");
request.getClientInfo().getAcceptedMediaTypes().add(new
Preference&lt;MediaType&gt;(MediaType.APPLICATION_JSON));
request.setEntity("", MediaType.APPLICATION_JSON);

my accept method will receive an entity with a null mediaType:

public void acceptRepresentation(Representation entity)    throws
ResourceException {
    
        MediaType mediaType = entity.getMediaType(); // will be null
     
        ....
}

Simply adding a space to the string (i.e. " ") results in the correct
media type.  This behaviour occurs when I deploy the application on
Tomcat, but not when run in standalone mode.

I've attached a bare-bones Tomcat webapp demonstrating this behaviour
and a test case showing that it does not occur when run in standalone mode.

From what I can make out, when the entity is "", getRequestHeaders is
returning 0 parameters at line 173 of  HttpServerCall (revision 3882)
but it is not clear to me</description>
    <dc:creator>Richard Hoberman</dc:creator>
    <dc:date>2008-11-17T09:49:42</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.java.restlet">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.java.restlet</link>
  </textinput>
</rdf:RDF>
