admin@glassfish.java.net

Re: how to use REST api in Java code

From: Jason Lee <jasondlee_at_sun.com>
Date: Fri, 29 Aug 2008 14:56:47 -0500

On Aug 29, 2008, at 2:54 PM, Lloyd Chambers wrote:

> Jason,
>
> Keep in mind that right now, "localhost:4848" is hard-coded, using
> HttpURLConnection to execute the command.
>
> I would like to be able to use CommandRunner, which Jerome will move
> out of core/kernel I hope.
>
> I can change the current code to traipse through the config and try
> to find out what URL to use, but I need to know all of the following
> to form a URL:
>
> - the scheme (http vs https)
> - the host
> - the port
> - the prefix (__asadmin)


But that's all hidden behind the API, right?

Jason Lee - x31197
Senior Java Developer, Sun Microsystems
GlassFish Admin Console Team
Email: jasondlee_at_sun.com