Code example for RequestLine

Methods: getMethodgetUri

    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() { 
        public HttpRequest newHttpRequest(final RequestLine requestline)
                throws MethodNotSupportedException { 
            if (requestline == null) {
                throw new IllegalArgumentException("Request line may not be null");
            //String method = requestline.getMethod(); 
Connect your IDE to all the code out there  Get Codota for Java