0
나는 @Put 호출에 자바 인터페이스를 통과하고 싶습니다 : 나는 ClientResource을 통해 F()를 호출하면으로 Restlet : @Put 매개 변수로 패스 자바 인터페이스
public interface IMyInterface {
...
}
public class MyClass implements IMyInterface, Serializable {
...
}
public class Service extends ServerResource {
@Put
public void f(IMyInterface a) {
...
}
}
, 나는 오류 메시지가 " IMyInterface가 직렬화되지 않기 때문에 지원되지 않는 미디어 유형 (415) "이라고 생각됩니다.
MyClass 개체를 IMyInterface로 전달할 수 있습니까?