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

com.att.aft.dme2.api.util.DME2ExchangeRequestContext Maven / Gradle / Ivy

/*******************************************************************************
 * Copyright (c) 2016 AT&T Intellectual Property. All rights reserved.
 *******************************************************************************/
package com.att.aft.dme2.api.util;

import java.util.Map;

public class DME2ExchangeRequestContext {
	
		private String service;
		private long timeoutMs;
		private Map queryParams;
		private Map requestHeaders;
		private String preferredRouteOffer;
    private String preferredVersion;
    /** special request flag that is set to force preferred Route offer from other routes with different sticky key*/
    private boolean forcePreferredRouteOffer = false;
		
		public DME2ExchangeRequestContext(String service, long timeoutMs, Map queryParams, Map requestHeaders) {
			this.service = service;
			this.timeoutMs = timeoutMs;

			this.queryParams = queryParams;
			this.requestHeaders = requestHeaders;
		}
		
		public String getService() {
			return service;
		}
		public void setService(String service) {
			this.service = service;
		}
		public Long getTimeoutMs() {
			return timeoutMs;
		}
		public void setTimeoutMs(Long timeoutMs) {
			this.timeoutMs = timeoutMs;
		}

		public Map getQueryParams() {
			return queryParams;
		}
		public void setQueryParams(Map queryParams) {
			this.queryParams = queryParams;
		}
		public Map getRequestHeaders() {
			return requestHeaders;
		}
		public void setRequestHeaders(Map requestHeaders) {
			this.requestHeaders = requestHeaders;
		}

		public String getPreferredRouteOffer() {
			return preferredRouteOffer;
		}

		public void setPreferredRouteOffer(String preferredRouteOffer) {
			this.preferredRouteOffer = preferredRouteOffer;
		}

  public void setTimeoutMs( long timeoutMs ) {
    this.timeoutMs = timeoutMs;
  }

  public String getPreferredVersion() {
    return preferredVersion;
  }

  public void setPreferredVersion( String preferredVersion ) {
    this.preferredVersion = preferredVersion;
  }

  public boolean isForcePreferredRouteOffer() {
    return forcePreferredRouteOffer;
  }

  public void setForcePreferredRouteOffer( boolean forcePreferredRouteOffer ) {
    this.forcePreferredRouteOffer = forcePreferredRouteOffer;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy