private void parseRequest ( HttpMethod httpMethod , HttpRequestBase request , JsonObject payload ) throws MPException { this . method = httpMethod . toString ( ) ; this . url = request . getURI ( ) . toString ( ) ; if ( payload != null ) { this . payload = payload . toString ( ) ; } }
Parses the http request in a custom MPApiResponse object .