just wondering how to implement it , i tried the following code not sure am i
doing correct,
public class MyMapper implements IRequestMapper {
private final IRequestMapper delegate;
public MyMapper(IRequestMapper delegate) {
this.delegate = delegate;
}
public IRequestHandler mapRequest(Request request) {
Url url = request.getUrl();
String user = WebSession.get().getClientInfo().getUserAgent();
//System.out.println(user);
return delegate.mapRequest(request.cloneWithUrl(url));
}
}
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/handling-user-agent-tp4649565p4649628.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]