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 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.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<>();
private Map httpResponseHeaders = 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 String getUserLocale()
{
return userLocale;
}
public void setUserLocale( String userLocale )
{
this.userLocale = userLocale;
}
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 );
}
public Map getHttpResponseHeaders()
{
return httpResponseHeaders;
}
public void setHttpResponseHeaders( Map httpResponseHeaders )
{
if( httpResponseHeaders == null )
this.httpResponseHeaders = new HashMap<>();
else
this.httpResponseHeaders = httpResponseHeaders;
}
@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();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy