[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: J2ME, HTML and the API methods
J2ME doesn't have sockets? Looking at the Sun CDC site
at http://java.sun.com/products/cdc/api.html I see
that java.net is fully included. Oh, it seems if you
use the scaled down HttpConnection class (example at
http://developers.sun.com/techtopics/mobility/midp/articles/network/)
then you don't get POST and DELETE support.
So an accurate version of his complaint is that he has
to use low level Socket classes to use POST and DELETE
not the higher level HttpConnection class.
--- Danny Ayers <danny666@xxxxxxxxxxx> wrote:
>
> Russell Beattie has pointed out in a couple of
> (incredibly blunt) blog posts
> that J2ME doesn't support PUT & DELETE. Several
> folks from around these
> parts have commented on his blog directly, but I'm
> posting here because we
> definitely need an answer to this. Given the
> deployment of J2ME it has to be
> a good answer. I've not had time to see how feasible
> it would to write
> libraries to support these verbs, that's one avenue
> to explore as is a
> SOAP-oriented mini-API. I personally think that PUT
> & DELETE are the best
> choice for the preferred way of using the API, but
> given the response this
> can provoke, a simple POST-based alternate interface
> to each may be a good
> idea - especially as HTML doesn't support these
> methods.
>
> e.g. something that could interpret this as a DELETE
> :
>
> <form method="post"
> action="http://example.org/resource">
> <input type="hidden" name="method" value="delete"
> />
> </form>
>
> ----
>
> J2ME Background article:
> MIDP Network Programming using HTTP and the
> Connection Framework
>
http://developers.sun.com/techtopics/mobility/midp/articles/network/
>
>
> Cheers,
> Danny.
>
> ----
>
> http://dannyayers.com
>
=====
THINGS TO DO IF I BECOME AN EVIL OVERLORD #95
My dungeon will have its own qualified medical staff complete with bodyguards. That way if a prisoner becomes sick and his cellmate tells the guard it's an emergency, the guard will fetch a trauma team instead of opening up the cell for a look.
__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools