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

com.backendless.IHeadersManager Maven / Gradle / Ivy

The newest version!
package com.backendless;

import lombok.Getter;

import java.util.Map;


public interface IHeadersManager
{
  void cleanHeaders();

  void addHeader( HeadersEnum headersEnum, String value );

  void addHeader( String name, String value );

  void addHeaders( Map headers );

  void removeHeader( HeadersEnum headersEnum );

  void removeHeader( String name );

  Map getHeaders();

  void setHeaders( Map headers );

  String getHeader( HeadersEnum headersEnum );

  String getHeader( String name );

  enum HeadersEnum
  {
    USER_TOKEN_KEY( "user-token" ),
    LOGGED_IN_KEY( "logged-in" ),
    SESSION_TIME_OUT_KEY( "session-time-out" ),
    APP_TYPE_NAME( "application-type" ),
    API_VERSION( "api-version" ),
    UI_STATE( "uiState" );

    @Getter
    private final String header;

    HeadersEnum( String header )
    {
      this.header = header;
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy