Package nxt.http

Class APIServlet.APIRequestHandler

    • Field Detail

      • NAME_FIELD

        protected static java.lang.String NAME_FIELD
      • DESCRIPTION_FIELD

        protected static java.lang.String DESCRIPTION_FIELD
      • MESSAGE_FIELD

        protected static java.lang.String MESSAGE_FIELD
    • 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()