com.backendless.IHeadersManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk-common Show documentation
Show all versions of java-sdk-common Show documentation
Provides access to Backendless API
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