Class BaseWebHandler

    • Constructor Detail

      • BaseWebHandler

        public BaseWebHandler()
      • BaseWebHandler

        public BaseWebHandler​(int order)
      • BaseWebHandler

        public BaseWebHandler​(java.util.EnumSet<HttpMethod> methodsAllowed)
      • BaseWebHandler

        public BaseWebHandler​(int order,
                              java.util.EnumSet<HttpMethod> methodsAllowed)
    • Method Detail

      • canHandle

        protected abstract boolean canHandle​(WebRequest webRequest)
      • badRequest

        protected final WebException badRequest​(java.lang.String message,
                                                java.lang.Object... args)
      • notFound

        protected final WebException notFound​(java.lang.String message,
                                              java.lang.Object... args)
      • methodNotAllowed

        protected final WebException methodNotAllowed​(java.lang.String message,
                                                      java.lang.Object... args)
      • getSize

        protected java.lang.Long getSize​(WebResponse webResponse)
      • getBodyLength

        protected java.lang.Long getBodyLength​(java.lang.Object body)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • addTraceInfo

        protected void addTraceInfo​(Trace trace,
                                    WebResponse webResponse)