Package org.tweetyproject.web.services
Class Post
java.lang.Object
org.tweetyproject.web.services.Post
- Direct Known Subclasses:
InconsistencyPost
Represents a generic data structure for HTTP POST requests. It encapsulates a command
string, which is commonly used in the payload of POST requests. This class is typically
used to simulate or construct POST request payloads within service-oriented architectures.
- Author:
- Jonas Klein
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionFluent API to set the command of this Post object and return the instance for chaining.boolean
Determines whether this Post object is equal to another object.getCmd()
Retrieves the command string of this Post object.void
Sets the command string for this Post object.toString()
Returns a string representation of this Post object.
-
Constructor Details
-
Post
public Post()Default constructor for the Post class. Initializes an empty command string. -
Post
Constructs a Post object with a specific command.- Parameters:
cmd
- The command string to be used as part of the POST request payload.
-
-
Method Details
-
getCmd
Retrieves the command string of this Post object.- Returns:
- The command string contained in this Post object.
-
setCmd
Sets the command string for this Post object.- Parameters:
cmd
- The command string to set for this Post object.
-
cmd
-
equals
Determines whether this Post object is equal to another object. Two Post objects are considered equal if their command strings are the same. -
toString
-