[JBoss JIRA] Updated: (NETTY-239) org.jboss.netty.handler.codec.http.HttpRequest.getURI() should behave consistently
Trustin Lee (JIRA)
jira-events at lists.jboss.org
Mon Nov 16 07:34:43 EST 2009
[ https://jira.jboss.org/jira/browse/NETTY-239?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Trustin Lee updated NETTY-239:
------------------------------
Fix Version/s: 3.2.0.ALPHA2
(was: 3.2.0.ALPHA1)
> org.jboss.netty.handler.codec.http.HttpRequest.getURI() should behave consistently
> ----------------------------------------------------------------------------------
>
> Key: NETTY-239
> URL: https://jira.jboss.org/jira/browse/NETTY-239
> Project: Netty
> Issue Type: Feature Request
> Affects Versions: 3.1.5.GA
> Reporter: Richard Opalka
> Assignee: Trustin Lee
> Fix For: 3.2.0.ALPHA2
>
>
> This is my code:
> public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) throws Exception
> {
> HttpRequest request = (HttpRequest) e.getMessage();
> String requestPath = getRequestPath(request.getUri());
> ...
> }
> request.getURI() returns once URIs without scheme, host and port and sometimes includes all necessary information.
> Here's the sample output:
> request.getUri(): http://127.0.0.1:8871/jaxws-endpoint/endpoint/number1/
> request.getUri(): /jaxws-endpoint/endpoint/number1?wsdl
> It would be really great if this method would behave consistently,
> i.e. return only request path without host specific info, or complete URI.
> But not both.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the netty-dev
mailing list