Class HttpLayer
java.lang.Object
de.muehlencord.shared.network.http.HttpLayer
Communication endpoint for posting a messages
- Author:
- Joern Muehlencord (joern@muehlencord.de)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidposts the value of message into the varialbe parametervoidposts a message using the given (additional) parameters.voidposts the parameters and values specified by the parameter map to the configured url
-
Constructor Details
-
HttpLayer
creates a new http layer which can communicate with the given url- Parameters:
urlString- the url to communicate with
-
-
Method Details
-
post
posts the value of message into the varialbe parameter- Parameters:
parameter- the parameter to write the message tomessage- the message to post- Throws:
MessageNotSendException- if the message cannot be sent
-
post
posts a message using the given (additional) parameters.- Parameters:
parameterMap- the parameters to use- Throws:
MessageNotSendException- if the message could not be sent.
-
post
posts the parameters and values specified by the parameter map to the configured url- Parameters:
parameterMap- the parameter map to post- Throws:
MessageNotSendException- if the http / post request cannot be executed TODO add https support
-