[arquillian-issues] [JBoss JIRA] (ARQ-1562) Warp: doesn't provide a built-in support for matching GET/POST requests by their parameters

Lukáš Fryč (JIRA) issues at jboss.org
Tue Jan 14 03:39:33 EST 2014


    [ https://issues.jboss.org/browse/ARQ-1562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12935516#comment-12935516 ] 

Lukáš Fryč commented on ARQ-1562:
---------------------------------

*query parameters:*

http://docs.jboss.org/netty/3.2/api/org/jboss/netty/handler/codec/http/QueryStringDecoder.html

*form data:*

{code}
public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) throws Exception {
  HttpRequest request = (HttpRequest) e.getMessage();
  HttpPostRequestDecoder decoder = new HttpPostRequestDecoder(new DefaultHttpDataFactory(false), request);

  InterfaceHttpData data = decoder.getBodyHttpData("fromField1");
  if (data.getHttpDataType() == HttpDataType.Attribute) {
     Attribute attribute = (Attribute) data;
     String value = attribute.getValue()
     System.out.println("fromField1 :" + value);
  }
}
{code}
                
> Warp: doesn't provide a built-in support for matching GET/POST requests by their parameters
> -------------------------------------------------------------------------------------------
>
>                 Key: ARQ-1562
>                 URL: https://issues.jboss.org/browse/ARQ-1562
>             Project: Arquillian
>          Issue Type: Enhancement
>      Security Level: Public(Everyone can see) 
>          Components: Extension - Warp
>    Affects Versions: warp_1.0.0.Alpha5
>            Reporter: Lukáš Fryč
>            Priority: Critical
>             Fix For: warp_1.0.0.Alpha6
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the arquillian-issues mailing list