I'd like to pass a java interface to a @Put call:
public interface IMyInterface {
...
}
public class MyClass implements IMyInterface, Serializable {
...
}
public class Service extends ServerResource {
@Put
public void f(IMyInterface a) {
...
}
}
When I call f() through a ClientResource, I get the error message "Unsupported Media Type (415)" which I presume is because IMyInterface is not serializable.
Is it possible to pass a MyClass object as IMyInterface?