fr.cnes.sitools.client
Class ProxyRestlet

java.lang.Object
  extended by org.restlet.Restlet
      extended by fr.cnes.sitools.client.ProxyRestlet
All Implemented Interfaces:
org.restlet.ext.wadl.WadlDescribable, org.restlet.Uniform

public class ProxyRestlet
extends org.restlet.Restlet
implements org.restlet.ext.wadl.WadlDescribable

Proxy resource that calls an external Url. Be careful that this resource does not act as a true proxy, all headers are not copied from the external request to the response.

Author:
m.gond

Constructor Summary
ProxyRestlet()
          Default constructor
ProxyRestlet(org.restlet.Context context)
          Constructor with Context
 
Method Summary
 void describe(org.restlet.ext.wadl.ResourceInfo resource)
          WADL describe method
 org.restlet.ext.wadl.ResourceInfo getResourceInfo(org.restlet.ext.wadl.ApplicationInfo applicationInfo)
           
 void handle(org.restlet.Request request, org.restlet.Response response)
           
 
Methods inherited from class org.restlet.Restlet
getApplication, getAuthor, getContext, getDescription, getLogger, getName, getOwner, isStarted, isStopped, setAuthor, setContext, setDescription, setName, setOwner, start, stop
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyRestlet

public ProxyRestlet()
Default constructor


ProxyRestlet

public ProxyRestlet(org.restlet.Context context)
Constructor with Context

Parameters:
context - the Context
Method Detail

handle

public void handle(org.restlet.Request request,
                   org.restlet.Response response)
Specified by:
handle in interface org.restlet.Uniform
Overrides:
handle in class org.restlet.Restlet

getResourceInfo

public org.restlet.ext.wadl.ResourceInfo getResourceInfo(org.restlet.ext.wadl.ApplicationInfo applicationInfo)
Specified by:
getResourceInfo in interface org.restlet.ext.wadl.WadlDescribable

describe

public void describe(org.restlet.ext.wadl.ResourceInfo resource)
WADL describe method

Parameters:
resource - the ResourceInfo


Copyright © 2010-2013 CNES. All Rights Reserved.