Class ListMethodsContent

java.lang.Object
i5.las2peer.communication.ListMethodsContent
All Implemented Interfaces:
Serializable

public class ListMethodsContent extends Object implements Serializable
See Also:
  • Constructor Details

    • ListMethodsContent

      public ListMethodsContent()
      create a new ListMethodContent as a request
    • ListMethodsContent

      public ListMethodsContent(boolean request)
      create a new ListMethodsContent either as a request or as a response, a response is open for adding methods after creation
      Parameters:
      request - If true, this is treated as request or as a response otherwise.
  • Method Details

    • addMethod

      public void addMethod(Method m)
      add a method to this response
      Parameters:
      m - A method to add
    • finalize

      public void finalize()
      close this response for adding methods
      Overrides:
      finalize in class Object
    • getSortedMethodNames

      public String[] getSortedMethodNames()
      get a sorted array with all names of methods stored in this answer
      Returns:
      array with method names
    • getSortedMethodParameters

      public String[][] getSortedMethodParameters(String methodName)
      get a sorted array of all parameter signatures for the given method name
      Parameters:
      methodName - A method name
      Returns:
      sorted array with all parameter signatures
    • isRequest

      public boolean isRequest()
      is this a request or response message?
      Returns:
      true, if this is a request message
    • toXmlString

      public String toXmlString()
      get an XML representation of this method list (this class is not xml able since the way back is not implemented (yet?)
      Returns:
      xml representation
    • toString

      public String toString()
      Overrides:
      toString in class Object