Code example for RequestLine

Methods: getMethod, getUri

0
    private ChatSession mChatSession;
 
    private DataListener mDataListener;
 
    public OtrDataHandler(ChatSession chatSession, DataListener dataListener) {
        this.mChatSession = chatSession;
        this.mDataListener = dataListener;
    } 
 
    public static class MyHttpRequestFactory implements HttpRequestFactory {
        public MyHttpRequestFactory() { 
            super(); 
        } 
 
        public HttpRequest newHttpRequest(final RequestLine requestline)
                throws MethodNotSupportedException { 
            if (requestline == null) {
                throw new IllegalArgumentException("Request line may not be null");
            } 
            //String method = requestline.getMethod(); 
            return new BasicHttpRequest(requestline);