All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.clouway.oauth2.InstantaneousRequestController Maven / Gradle / Ivy

package com.clouway.oauth2;

import com.clouway.friendlyserve.Request;
import com.clouway.friendlyserve.Response;
import com.clouway.friendlyserve.Take;

import java.io.IOException;

/**
 * @author Miroslav Genov ([email protected])
 */
class InstantaneousRequestController implements Take {

  private final InstantaneousRequest instantaneousRequest;

  InstantaneousRequestController(InstantaneousRequest request) {
    this.instantaneousRequest = request;
  }

  @Override
  public Response ack(Request request) throws IOException {
    return instantaneousRequest.handleAsOf(request, new DateTime());
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy