class GpsApiHandler implements Callable<FullHttpResponse> {

	@Override
	public FullHttpResponse call() {
		LoggingService.logDebug(MODULE_NAME, "Processing gps http request");
		final String contentTypeError = ApiHandlerHelpers.validateContentType(this.req, "application/json");
		if (contentTypeError != null) {
			LoggingService.logError(MODULE_NAME, contentTypeError, new Exception());
			return ApiHandlerHelpers.badRequestResponse(outputBuffer, contentTypeError);
		}

		if (req.method() == POST) {
			return setAgentGpsCoordinates();
		} else if (req.method() == GET) {
			return getAgentGpsCoordinates();
		} else {
			String errorMsg = "Not supported method: " + req.method();
			outputBuffer.writeBytes(errorMsg.getBytes());
			return ApiHandlerHelpers.badRequestResponse(outputBuffer, errorMsg);
		}
	}

	public  GpsApiHandler(HttpRequest req, ByteBuf outputBuffer, byte[] content);

}