[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Netty HTTP transport

ataylor do-not-reply at jboss.com
Wed Nov 5 04:08:27 EST 2008


anonymous wrote : I forgot to mention that the header name is case insensitive. TreeMap with a custom Comparator should be used perhaps? 

ok, cool.

anonymous wrote : 
  | Commas are interpreted as header value separators only when explicitly specified in the HTTP specification AFAIK. I think we don't need to take care of commas and left it to the user application. 

Ok, so all i have to cope with is multiline headers?

anonymous wrote : What do you think about making it non-enum?

fine with me, I'll change it

anonymous wrote : When you create a new URI instance, you can specify query parameters and get them by calling URI.getQuery(). Of course, it's not a convenient form and it requires additional processing. My point is we don't need to hold duplicate information though. We could provide two helper classes:
  | 
  | a) UriBuilder - helps a user to build a URI easily.
  | 
  | UriBuilder ub = new UriBuilder("http://www.jboss.org/hello");
  | ub.addParameter("name", "Andy");
  | URI uri = ub.toUri();
  | 
  | b) UriQueryDecoder - helps a user to decode the query string
  | 
  | UriQueryDecoder uqd = new UriQueryDecoder(uri);
  | uqd.getParameter("name"); 

Ok, so I'll add these and then use them in decode/encode?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4186923#4186923

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4186923



More information about the jboss-dev-forums mailing list