Uploaded image for project: 'Netty'
  1. Netty
  2. NETTY-233

Missing translation method 'HttpResponseStatus org.jboss.netty.handler.codec.http.HttpResponseStatus.valueOf(int)'

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 3.1.5.GA
    • Component/s: Handler
    • Labels:
      None

      Description

      Hi Netty team,

      I'm really missing above translation method.
      Without it I have to do the following:

      int statusCode = ...
      HttpResponseStatus status = getNettyResponseStatus(statusCode);
      HttpResponse response = new DefaultHttpResponse(HttpVersion.HTTP_1_1, status);

      where 'HttpResponseStatus getNettyResponseStatus(int sc) {}' contains plenty of if statements

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                trustin Trustin Lee
                Reporter:
                ropalka Richard Opalka
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: