You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Coder One <co...@yahoo.com> on 2008/05/29 02:53:48 UTC
Real McCoy Re: REST Annotation in CXF 2.1
YAHOO.Shortcuts.hasSensitiveText = false;
YAHOO.Shortcuts.sensitivityType = [];
YAHOO.Shortcuts.doUlt = false;
YAHOO.Shortcuts.location = "us";
YAHOO.Shortcuts.document_id = 0;
YAHOO.Shortcuts.document_type = "";
YAHOO.Shortcuts.document_title = "Real McCoy Re: REST Annotation in CXF 2.1";
YAHOO.Shortcuts.document_publish_date = "";
YAHOO.Shortcuts.document_author = "coder_lol@yahoo.com";
YAHOO.Shortcuts.document_url = "";
YAHOO.Shortcuts.document_tags = "";
YAHOO.Shortcuts.annotationSet = {"lw_1212022357_0":{"text":"coder_lol@yahoo.com","extended":0,"startchar":904,"endchar":922,"start":904,"end":922,"extendedFrom":"","predictedCategory":"","predictionProbability":"0","weight":1,"type":["shortcuts:\/us\/instance\/identifier\/email_address"],"category":["IDENTIFIER"],"context":"public GetMsgRsp getAlertMsg(@PathParam(\"aReq\") GetMsgReq aReq) { ..... } --- On Tue, 5\/27\/08, Coder One wrote: From: Coder One Subject: REST Annotation in
CXF","ult":"http:\/\/fe.shortcuts.search.yahoo.com\/build;_ylt=AruQWfXU33lZ2iiHCR0sKs1jk70X","ult_hover":"http:\/\/fe.shortcuts.search.yahoo.com\/build;_ylt=AsfWiuyvLhSFEg0r7Aig.J9jk70X"},"lw_1212022357_1":{"text":"coder_lol@yahoo.com","extended":0,"startchar":1062,"endchar":1080,"start":1062,"end":1080,"extendedFrom":"","predictedCategory":"","predictionProbability":"0","weight":1,"type":["shortcuts:\/us\/instance\/identifier\/email_address"],"category":["IDENTIFIER"],"context":"On Tue, 5\/27\/08, Coder One wrote: From: Coder One Subject: REST Annotation in CXF 2.1 To: users@cxf.apache.org Date:
Tuesday","ult":"http:\/\/fe.shortcuts.search.yahoo.com\/build;_ylt=AoinW8FJx8uoWEvxpJ4sbsJjk70X","ult_hover":"http:\/\/fe.shortcuts.search.yahoo.com\/build;_ylt=Ai_QrzRURQNJKD1oaiXkE11jk70X"},"lw_1212022357_2":{"text":"users@cxf.apache.org","extended":0,"startchar":1132,"endchar":1151,"start":1132,"end":1151,"extendedFrom":"","predictedCategory":"","predictionProbability":"0","weight":1,"type":["shortcuts:\/us\/instance\/identifier\/email_address"],"category":["IDENTIFIER"],"context":"Coder One Subject: REST Annotation in CXF 2.1 To: users@cxf.apache.org Date: Tuesday, May 27, 2008, 10:38 PM Regarding the example","ult":"http:\/\/fe.shortcuts.search.yahoo.com\/build;_ylt=AtpniZlQnpYh4goYuRsJ6sdjk70X","ult_hover":"http:\/\/fe.shortcuts.search.yahoo.com\/build;_ylt=Ap9T_ZYzx48yWkoUfnmd4zBjk70X"}};
My apologies...not sure why YHOO EMAIL decided to send out half a dozen messages...
So my GetMsgReq class contains multiple properties like id, name, description, etc...
How do I actually form the URL that I can simply paste into a browser and try? Thanks...
@GET
@Path("getAlertMsg")
@ProduceMime("application/json")
public GetMsgRsp getAlertMsg(@PathParam("aReq") GetMsgReq aReq)
{
.....
}
Thanks!!!
--- On Wed, 5/28/08, Sergey Beryozkin <sergey.beryozkin@iona.com> wrote:
From: Sergey Beryozkin <sergey.beryozkin@iona.com>
Subject: Re: REST Annotation in CXF 2.1
To: coder_lol@yahoo.com
Date: Wednesday, May 28, 2008, 9:02 AM
Hi, Can you repost your question to the user list ?
There's something wrong with the format...
Thanks, Sergey
----- Original Message -----
From: "Coder One" <coder_lol@yahoo.com>
To: <users@cxf.apache.org>
Sent: Wednesday, May 28, 2008 6:38 AM
Subject: REST Annotation in CXF 2.1
> Regarding the example below, what if the class GetCustomer has a few more
fields, like name, age, etc. what would th
> &nbsp;
> &nbsp;
> &nbsp;
> &nbsp;&nbsp;&nbsp; @GET
> &nbsp;&nbsp;&nbsp; @Path("getAlertMsg")
> &nbsp;&nbsp;&nbsp; @ProduceMime("application/json")
> &nbsp;&nbsp;&nbsp; public GetMsgRsp
getAlertMsg(@PathParam("aReq") GettMsgReq aReq)
> &nbsp;&nbsp;&nbsp; {
> &nbsp;&nbsp;&nbsp;&nbsp; .....
> &nbsp;&nbsp;&nbsp; }
>
>
>
----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland