Package com.cribbstechnologies.clients.mandrill.model.response

Examples of com.cribbstechnologies.clients.mandrill.model.response.BaseMandrillStringResponse


     * @param pingRequest
     *            a populated @see com.cribbstechnologies.clients.mandrill.model.BaseMandrillRequest
     * @throws RequestFailedException
     */
    public BaseMandrillStringResponse performPing(BaseMandrillRequest pingRequest) throws RequestFailedException {
        BaseMandrillStringResponse response = (BaseMandrillStringResponse) request.postRequest(pingRequest, ServiceMethods.Users.PING, null);
        return response;
    }
View Full Code Here


                throw new RequestFailedException("Failed : HTTP error code : " + response.getStatusLine().getStatusCode() + " " + responseString);
            }

            // for whatever reason the ping response isn't well-formed
            if (ServiceMethods.Users.PING.equals(serviceMethod) && responseString.indexOf("PONG!") > -1) {
                return new BaseMandrillStringResponse(responseString);
            }

            if (reference == null) {
                return convertResponseData(responseString, responseClass);
            } else {
View Full Code Here

TOP

Related Classes of com.cribbstechnologies.clients.mandrill.model.response.BaseMandrillStringResponse

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.