T
- The type of the REST resource that is used with this template.R
- The type of the result returned by a call to this template.public abstract class RestCallTemplate<T extends org.restlet.resource.ClientProxy,R> extends Object
Template to use when calling rest resources. It makes sure to read the whole response and release the response entity.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Constructor and Description |
---|
RestCallTemplate() |
protected abstract R execWith(T resource) throws com.wewebu.ow.server.exceptions.OwException
com.wewebu.ow.server.exceptions.OwException
public R doCall(T resource) throws com.wewebu.ow.server.exceptions.OwException
resource
- OwRestException
com.wewebu.ow.server.exceptions.OwException
protected void onResourceException(org.restlet.resource.ResourceException resEx, T resource) throws com.wewebu.ow.server.exceptions.OwException
com.wewebu.ow.server.exceptions.OwException
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.