com.google.api.client.googleapis.services.AbstractGoogleClientRequest

Here are the examples of the java api class com.google.api.client.googleapis.services.AbstractGoogleClientRequest taken from open source projects.

1. GoogleMailProducer#doInvokeMethod()

Project: camel
File: GoogleMailProducer.java
@Override
protected Object doInvokeMethod(ApiMethod method, Map<String, Object> properties) throws RuntimeCamelException {
    AbstractGoogleClientRequest request = (AbstractGoogleClientRequest) super.doInvokeMethod(method, properties);
    try {
        TypeConverter typeConverter = getEndpoint().getCamelContext().getTypeConverter();
        for (Entry<String, Object> p : properties.entrySet()) {
            IntrospectionSupport.setProperty(typeConverter, request, p.getKey(), p.getValue());
        }
        return request.execute();
    } catch (Exception e) {
        throw new RuntimeCamelException(e);
    }
}

2. GoogleMailConsumer#doInvokeMethod()

Project: camel
File: GoogleMailConsumer.java
@Override
protected Object doInvokeMethod(Map<String, Object> properties) throws RuntimeCamelException {
    AbstractGoogleClientRequest request = (AbstractGoogleClientRequest) super.doInvokeMethod(properties);
    try {
        TypeConverter typeConverter = getEndpoint().getCamelContext().getTypeConverter();
        for (Entry<String, Object> p : properties.entrySet()) {
            IntrospectionSupport.setProperty(typeConverter, request, p.getKey(), p.getValue());
        }
        return request.execute();
    } catch (Exception e) {
        throw new RuntimeCamelException(e);
    }
}

3. GoogleDriveProducer#doInvokeMethod()

Project: camel
File: GoogleDriveProducer.java
@Override
protected Object doInvokeMethod(ApiMethod method, Map<String, Object> properties) throws RuntimeCamelException {
    AbstractGoogleClientRequest request = (AbstractGoogleClientRequest) super.doInvokeMethod(method, properties);
    try {
        TypeConverter typeConverter = getEndpoint().getCamelContext().getTypeConverter();
        for (Entry<String, Object> p : properties.entrySet()) {
            IntrospectionSupport.setProperty(typeConverter, request, p.getKey(), p.getValue());
        }
        return request.execute();
    } catch (Exception e) {
        throw new RuntimeCamelException(e);
    }
}

4. GoogleDriveConsumer#doInvokeMethod()

Project: camel
File: GoogleDriveConsumer.java
@Override
protected Object doInvokeMethod(Map<String, Object> properties) throws RuntimeCamelException {
    AbstractGoogleClientRequest request = (AbstractGoogleClientRequest) super.doInvokeMethod(properties);
    try {
        TypeConverter typeConverter = getEndpoint().getCamelContext().getTypeConverter();
        for (Entry<String, Object> p : properties.entrySet()) {
            IntrospectionSupport.setProperty(typeConverter, request, p.getKey(), p.getValue());
        }
        return request.execute();
    } catch (Exception e) {
        throw new RuntimeCamelException(e);
    }
}

5. GoogleCalendarProducer#doInvokeMethod()

Project: camel
File: GoogleCalendarProducer.java
@Override
protected Object doInvokeMethod(ApiMethod method, Map<String, Object> properties) throws RuntimeCamelException {
    AbstractGoogleClientRequest request = (AbstractGoogleClientRequest) super.doInvokeMethod(method, properties);
    try {
        TypeConverter typeConverter = getEndpoint().getCamelContext().getTypeConverter();
        for (Entry<String, Object> p : properties.entrySet()) {
            IntrospectionSupport.setProperty(typeConverter, request, p.getKey(), p.getValue());
        }
        return request.execute();
    } catch (Exception e) {
        throw new RuntimeCamelException(e);
    }
}

6. GoogleCalendarConsumer#doInvokeMethod()

Project: camel
File: GoogleCalendarConsumer.java
@Override
protected Object doInvokeMethod(Map<String, Object> properties) throws RuntimeCamelException {
    AbstractGoogleClientRequest request = (AbstractGoogleClientRequest) super.doInvokeMethod(properties);
    try {
        TypeConverter typeConverter = getEndpoint().getCamelContext().getTypeConverter();
        for (Entry<String, Object> p : properties.entrySet()) {
            IntrospectionSupport.setProperty(typeConverter, request, p.getKey(), p.getValue());
        }
        return request.execute();
    } catch (Exception e) {
        throw new RuntimeCamelException(e);
    }
}