cloud-endpoints for Java client

78 views
Skip to first unread message

Martin Trummer

unread,
Sep 3, 2013, 3:29:54 AM9/3/13
to google-a...@googlegroups.com

is it possible to use google cloud endpoints for a Java-Client?
the docs only mention mobile (Android, iOs) and Web (Java-script)

Vinny P

unread,
Sep 4, 2013, 12:14:44 AM9/4/13
to google-a...@googlegroups.com
On Tue, Sep 3, 2013 at 2:29 AM, Martin Trummer <ds.marti...@gmail.com> wrote:

is it possible to use google cloud endpoints for a Java-Client?
the docs only mention mobile (Android, iOs) and Web (Java-script)


 Yes, you can use Endpoints for a Java client, or any client in any coding language for that matter. 

First of all, what type of client is this? Is it a GWT application? An Android app (in which case you can use the Android directions)? A standalone Java application? A servlet? Depending on your choice, there's a specific way to go about accessing Endpoints.

Generally though, you can take the JSON output from endpoint services, extract it using your preferred parser, and process the data as you like.
 
-----------------
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

Martin Trummer

unread,
Sep 4, 2013, 3:46:30 AM9/4/13
to google-a...@googlegroups.com
it's a Java-standalone application.

I just wonder if it really works, because only Android, iOs and Java-Script are mentioned in the doc: https://developers.google.com/appengine/docs/java/endpoints/.
As I understand it, I just annotate my classes and then start a generator to create a client lib for the endpoints (https://developers.google.com/appengine/docs/java/endpoints/gen_clients).
So is it correct, that I just start the generator for Android and then I can use those generated code for my Java Standalone App.?

Generally though, you can take the JSON output from endpoint services, extract it using your preferred parser, and process the data as you like.
That sounds too easy :)
i.e. what about Authentication, etc.? How to provide this in plain Java when there's no Android.




Mit freundlichen Grüssen/Kind  regards,
 Martin Trummer
______________________________
DI (FH) Martin Trummer
Mobile: +43 676 700 47 81
skype:ds.martin.trummer
mailto:martin....@dewesoft.com
Attention! New mailaddress ends with .com (was .org before)

DEWESoft GmbH
Grazerstrasse 7
A-8062 Kumberg
Austria / Europe
Tel.: +43 3132 2252
Fax: +43 3132 2252
UID-Nr.: ATU 654 93414
FB-Nr.:  078/4236-21
www.dewesoft.com
______________________________

This e-mail may contain confidential and/or privileged information.
If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and delete this e-mail.
Any unauthorized copying, disclosure or distribution of the material in this e-mail is prohibited.


--
You received this message because you are subscribed to a topic in the Google Groups "Google App Engine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-appengine/Fzm3C3Iy3y0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.

Vinny P

unread,
Sep 5, 2013, 2:02:27 AM9/5/13
to google-a...@googlegroups.com
On Wed, Sep 4, 2013 at 2:46 AM, Martin Trummer <martin....@dewesoft.com> wrote:
That sounds too easy :)
i.e. what about Authentication, etc.? How to provide this in plain Java when there's no Android.




Depending on your use case and application design, yes it is that easy. 

As for authentication, it's relatively easy (again, depending on your use case and app design). You can roll your own authentication (there are libraries to make this easy, search GitHub) or use some other authentication service, in which case you'll need to refer to their documentation to see how their auth flow works.


On Wed, Sep 4, 2013 at 2:46 AM, Martin Trummer <martin....@dewesoft.com> wrote:
I just start the generator for Android and then I can use those generated code for my Java Standalone App.?



No. You can only use the Android-targeted libraries within an Android environment.
Reply all
Reply to author
Forward
0 new messages