Package playn.core
Class Net
java.lang.Object
playn.core.Net
PlayN network interface.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassBuilds a request and allows it to be configured and executed.static classContains data for an HTTP header.static classUsed to report HTTP error responses byget(java.lang.String)andpost(java.lang.String, java.lang.String).static classCommunicates an HTTP response to the caller.static interfaceEncapsulates a web socket. -
Constructor Summary
Constructors -
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.
-