Package nxt.http

Class APIServlet.APIRequestHandler

    • Constructor Detail

      • APIRequestHandler

        protected APIRequestHandler​(APITag[] apiTags,
                                    java.lang.String... parameters)
      • APIRequestHandler

        protected APIRequestHandler​(java.lang.String fileParameter,
                                    APITag[] apiTags,
                                    java.lang.String... origParameters)
    • Method Detail

      • getParameters

        public final java.util.List<java.lang.String> getParameters()
      • getAPITags

        public final java.util.Set<APITag> getAPITags()
      • getFileParameter

        public final java.lang.String getFileParameter()
      • processRequest

        protected abstract org.json.simple.JSONStreamAware processRequest​(javax.servlet.http.HttpServletRequest request)
                                                                   throws NxtException
        Throws:
        NxtException
      • processRequest

        protected org.json.simple.JSONStreamAware processRequest​(javax.servlet.http.HttpServletRequest request,
                                                                 javax.servlet.http.HttpServletResponse response)
                                                          throws NxtException
        Throws:
        NxtException
      • requirePost

        protected boolean requirePost()
      • startDbTransaction

        protected boolean startDbTransaction()
      • requirePassword

        protected boolean requirePassword()
      • allowRequiredBlockParameters

        protected boolean allowRequiredBlockParameters()
      • requireBlockchain

        protected boolean requireBlockchain()
      • requireFullClient

        protected boolean requireFullClient()
      • isTextArea

        protected boolean isTextArea​(java.lang.String parameter)
      • isPassword

        protected boolean isPassword​(java.lang.String parameter)