Class AbstractHttpCommandCodec

    • Constructor Detail

      • AbstractHttpCommandCodec

        public AbstractHttpCommandCodec()
    • Method Detail

      • amendParameters

        protected abstract java.util.Map<java.lang.String,​?> amendParameters​(java.lang.String name,
                                                                                   java.util.Map<java.lang.String,​?> parameters)
      • defineCommand

        public void defineCommand​(java.lang.String name,
                                  HttpMethod method,
                                  java.lang.String pathPattern)
        Defines a new command mapping.
        Specified by:
        defineCommand in interface CommandCodec<HttpRequest>
        Parameters:
        name - The command name.
        method - The HTTP method to use for the command.
        pathPattern - The URI path pattern for the command. When encoding a command, each path segment prefixed with a ":" will be replaced with the corresponding parameter from the encoded command.
      • alias

        public void alias​(java.lang.String commandName,
                          java.lang.String isAnAliasFor)
        Description copied from interface: CommandCodec
        Allow commands to have aliases.
        Specified by:
        alias in interface CommandCodec<HttpRequest>
        Parameters:
        commandName - The command being added.
        isAnAliasFor - The command name that this is an alias for.