Package playn.core
Class Net
java.lang.Object
playn.core.Net
PlayN network interface.
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
Builds a request and allows it to be configured and executed.static class
Contains data for an HTTP header.static class
Used to report HTTP error responses byget(java.lang.String)
andpost(java.lang.String, java.lang.String)
.static class
Communicates an HTTP response to the caller.static interface
Encapsulates a web socket. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateWebSocket
(String url, Net.WebSocket.Listener listener) Create a websocket with given URL and listener.Performs an HTTP GET request to the specified URL.Performs an HTTP POST request to the specified URL.Creates a builder for a request with the specified URL.
-
Constructor Details
-
Net
public Net()
-
-
Method Details
-
createWebSocket
Create a websocket with given URL and listener. -
get
Performs an HTTP GET request to the specified URL. -
post
Performs an HTTP POST request to the specified URL. -
req
Creates a builder for a request with the specified URL.
-