Hello Rashik,

there's something unclear to me. The StreamClientHelper explicitely 
supports the HTTP protocol, so 
"connector.getprotocols().containsAll(client.getProtocols())" must 
return true.

Could you tell us what the following code produces on the console?

com.noelios.restlet.Engine engine = (com.noelios.restlet.Engine) 
org.restlet.util.Engine.getInstance();
System.out.println("           engine: " + engine);
System.out.println("client connectors: " + engine.getRegisteredClients());

Client client = new Client(Protocol.HTTP);

for (ClientHelper helper : engine.getRegisteredClients()) {
    System.out.println("    client helper: " + helper);
    System.out.print(" client protocols: " + helper.getProtocols());
    System.out.println(" => " + 
helper.getProtocols().containsAll(client.getProtocols()));
}
System.out.println("    chosen helper: " + 
Engine.getInstance().createHelper(client, null));

Best regards,
Thierry Boileau
ps: what release of Restlet are you using?


> hi Thierry
>
> If i execute the following in side matlab
>
> Client client = new Client(Protocol.HTTP);
> I get the warning
>
> WARNUNG: No available client connector supports the required protocols: 
> 'PROTOCOL.HTTP' . Please add the JAR of a matching connector to your 
> classpath.
>
> When i execut the following
> System.out.println(EâEUR<
> null));
> I get the same warning.
> WARNUNG: No available client connector supports the required protocols: 
> 'PROTOCOL.HTTP' . Please add the JAR of a matching connector to your 
> classpath.
>
> But when i checked the code of the createhelper() and so i checked for more 
> values from matlab.
>
> client.getProtocol() returns [HTTP].
> but for
> (connector.getprotocols().containsAll(client.getProtocol()) returns 0 for 
> iteration with
> com.noelios.restlet.âEUR

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2450503

Reply via email to