Mark Petrovic-2 wrote:
>
> Here is a getting started guide:
>
> @XmlRootElement(name = "sometweet")
> @XmlAccessorType(XmlAccessType.PUBLIC_MEMBER)
> public class TweetBag {
> private String sender;
> public String getSender() {
> return sender;
> }
> public void setSender(String s) {
> this.sender = sender;
> }
> }
>
> ...
>
> TweetBag bag = new TweetBag();
> bag.setSender(tweet.getSender());
> ...
>
> return bag;
>
> Mark
>
I did exactly as above. I have no errors now but what i get is only this:
<?xml version="1.0" encoding="UTF-8"?>
sometweet/>
@GET
@Path("{phrase}")
public TweetBag searchPhrase(@PathParam("phrase") String keyword) {
...
TweetBag bag = new TweetBag();
bag.setSender(tweets.get(0).getFromUser());
return bag
}
--
View this message in context: http://jersey.576304.n2.nabble.com/Twitter4j-Jersey-WebApplicationException-tp6095973p6125669.html
Sent from the Jersey mailing list archive at Nabble.com.