Hi Chris,

Sure you can, just set the call.redirectRef property. For the HTTP
connectors, it will be mapped to the "Location:" response header.

Best regards,
Jerome  

> -----Message d'origine-----
> De : Chris Winters [mailto:[EMAIL PROTECTED] 
> Envoyé : lundi 14 août 2006 16:32
> À : [email protected]
> Objet : Re: managing URIs?
> 
> (picking up a thread from a few days ago about retrieving 
> client headers 
> ...) 
> 
> Jerome Louvel wrote: 
> > ... 
> > That's exactly the plan, allow the creation of a custom 
> Call (subclass if 
> > necessary) from the ConnectorCall or the other way around 
> for client 
> > connectors. 
> 
> So now I've hit the 'other way around' part of your clause. Say I'm 
> allowing the client to create a resource with: 
> 
>    POST /authors 
>    Content-Type: application/xml 
>    ... 
> 
>    <author>...</author> 
> 
> IIRC the standard practice in REST apps is to return a 
> 'Created' status 
> along with the location of the newly created entity: 
> 
>    201 Created 
>    Location: /author/115 
>    ... 
> 
> So my question is: can I currently (in SVN code) give the client the 
> 'Location' as specified here? 
> 
> Chris 
> 
> -- 
> Chris Winters ([EMAIL PROTECTED]) 
> Lead Software Developer 
> Vocollect Healthcare Systems 
> 
> CONFIDENTIAL, PRIVILEGED COMMUNICATION: This e-mail is private and 
> intended for the addressee(s) only. It may contain privileged and/or 
> confidential information. If you have received it in error 
> you are  not 
> authorized to disseminate it in any manner; please delete it and any 
> copies and reply to the sender that it was misdirected. 
> 
> 
> 

Reply via email to