com.backendless.servercode.RunnerContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of backendless Show documentation
Show all versions of backendless Show documentation
Android SDK used by developers to provide Backendless API in apps.
package com.backendless.servercode;
import com.backendless.commons.DeviceType;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class RunnerContext extends AbstractContext
{
private Map missingProperties = new HashMap<>();
private Object prematureResult;
private String eventContext;
private Map crossHandlerData = new HashMap<>();
public String getAppId()
{
return appId;
}
public void setAppId( String appId )
{
this.appId = appId;
}
public String getUserId()
{
return userId;
}
public void setUserId( String userId )
{
this.userId = userId;
}
public String getUserToken()
{
return userToken;
}
public void setUserToken( String userToken )
{
this.userToken = userToken;
}
public List getUserRoles()
{
return userRoles;
}
public void setUserRoles( List userRoles )
{
this.userRoles = userRoles;
}
public DeviceType getDeviceType()
{
return deviceType;
}
public void setDeviceType( DeviceType deviceType )
{
this.deviceType = deviceType;
}
@Deprecated
public List getUserRole()
{
return this.userRoles;
}
@Deprecated
public void setUserRole( List userRole )
{
this.userRoles = userRole;
}
public Map getMissingProperties()
{
return missingProperties;
}
public void setMissingProperties( Map missingProperties )
{
if( missingProperties == null )
this.missingProperties = new HashMap<>();
else
this.missingProperties = missingProperties;
}
public Object getPrematureResult()
{
return prematureResult;
}
public void setPrematureResult( Object prematureResult )
{
this.prematureResult = prematureResult;
}
public String getEventContext()
{
return eventContext;
}
public void setEventContext( String eventContext )
{
this.eventContext = eventContext;
}
public Map getHttpHeaders()
{
return httpHeaders;
}
public void setHttpHeaders( Map httpHeaders )
{
this.httpHeaders = httpHeaders;
}
public Map getCrossHandlerData()
{
return crossHandlerData;
}
public void setCrossHandlerData( Map crossHandlerData )
{
if( crossHandlerData == null )
this.crossHandlerData = new HashMap<>();
else
this.crossHandlerData = crossHandlerData;
}
public void addCrossHandlerData( String key, Object value )
{
this.crossHandlerData.put( key, value );
}
@Override
public String toString()
{
final StringBuilder sb = new StringBuilder( "RunnerContext{" );
sb.append( "missingProperties=" ).append( missingProperties );
sb.append( ", prematureResult=" ).append( prematureResult );
sb.append( ", eventContext=" ).append( eventContext );
sb.append( ", httpHeaders=" ).append( httpHeaders );
sb.append( ", " ).append(super.toString());
sb.append( "}" );
return sb.toString();
}
}