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

com.backendless.JavaHeadersManager Maven / Gradle / Ivy

package com.backendless;

import com.backendless.commons.DeviceType;
import com.backendless.exceptions.BackendlessException;


class JavaHeadersManager extends PlainHeadersManager
{
  private static final JavaHeadersManager instance = new JavaHeadersManager();

  static JavaHeadersManager getInstance() throws BackendlessException
  {
    return instance;
  }

  private JavaHeadersManager()
  {
  }

  @Override
  public void cleanHeaders()
  {
    super.cleanHeaders();
    addHeader( IHeadersManager.HeadersEnum.APP_TYPE_NAME, DeviceType.CUSTOM.name() );
    addHeader( IHeadersManager.HeadersEnum.API_VERSION, "1.0" );
    addHeaders( BackendlessInjector.getInstance().getPrefs().getHeaders() );
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy