@Singleton public class BindToXMLPayloadAndPath extends BindToXMLPayload
This method should be used in PUT
methods to automatically extract the path parameters
from the edit link of the updated object.
xmlParser
Constructor and Description |
---|
BindToXMLPayloadAndPath(XMLParser xmlParser) |
Modifier and Type | Method and Description |
---|---|
<R extends HttpRequest> |
bindToRequest(R request,
Object payload) |
protected String |
getNewEndpoint(GeneratedHttpRequest gRequest,
Object input)
Get the new endpoint to use.
|
@Inject public BindToXMLPayloadAndPath(XMLParser xmlParser)
public <R extends HttpRequest> R bindToRequest(R request, Object payload)
bindToRequest
in interface Binder
bindToRequest
in class BindToXMLPayload
protected String getNewEndpoint(GeneratedHttpRequest gRequest, Object input)
gRequest
- The request.input
- The input parameter.Copyright © 2009-2013 jclouds. All Rights Reserved.