Я хочу более одного метода поста в том же классе ресурсов в рамках Restlet, как показано ниже:Вызова более после метода в том же ресурсе в рамках Restlet
public class Myclass extends ServerResource {
private Logger log = Logger.getLogger(LoginResource.class.getName());
@Post
public Representation createUser(final Representation representation) throws IOException {
..........................
................................
}
/**
* This class will help in creating a person.
* @return representation Representation
* @param representation Representation
* @throws IOException IOException
*/
@Post
public Representation createAllUser(final Representation representation) throws IOException {
...............
...............................
return new JacksonRepresentation<>("Success");
}
}
Как это сделать? Пожалуйста, предоставьте некоторое решение в соответствии с моей проблемой. Пожалуйста, помогите мне.