Class RestCommand

    • Constructor Detail

      • RestCommand

        public RestCommand()
    • Method Detail

      • setApi

        public void setApi​(ServerAPI api)
      • getSession

        public Session getSession()
      • getResponse

        public Entry getResponse()
      • setResponse

        public void setResponse​(Entry response)
      • getRequest

        public Entry getRequest()
      • setPath

        public void setPath​(java.util.List path)
      • getPath

        public java.util.List getPath()
      • getPath

        public java.lang.String getPath​(int index)
      • getCommand

        public java.lang.String getCommand()
      • appendResult

        protected Attribute appendResult​(java.lang.String attr,
                                         java.lang.String value)
      • execute

        public abstract void execute()
                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • addPendingCommand

        public void addPendingCommand​(java.lang.String name,
                                      RestCommand obj)
      • getPendingCommand

        public RestCommand getPendingCommand​(java.lang.String name)
      • getRequestParam

        public java.lang.String getRequestParam​(java.lang.String name)
      • isParamTrue

        public boolean isParamTrue​(java.lang.String name)
      • getRequestBody

        public java.lang.String getRequestBody()
      • appendBody

        public void appendBody​(java.lang.String body)
      • setBody

        public void setBody​(java.lang.String body)
      • setBody

        public void setBody​(java.lang.String body,
                            boolean append)
      • readFile

        public java.lang.String readFile​(java.io.File file)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • isReusable

        public boolean isReusable()
      • dispose

        public void dispose()