package fast.rocket.builder; import java.util.Map; import fast.rocket.cache.CachePolicy; import fast.rocket.response.JsonCallback; public interface JsonBuilder{ /** * @param callback * @return */ public JsonBuilder invoke(JsonCallback<?> callback); /** * Sets the request tag. Request can be removed by the tag. * * @param tag the tag * @return the rocket request builder */ public JsonBuilder requestTag(Object tag); /** * Sets the request params for the http post. * * @param params the params * @return the rocket request builder */ public JsonBuilder requestParams(Map<String, Object> params); /** * Sets the json request http headers. * * @param headers the headers * @return the rocket request builder */ public JsonBuilder requestHeaders(Map<String, String> headers); /** * Sets the request cookie tag. Request can be removed by the tag. * * @param enableCookie the tag * @return the rocket request builder */ public JsonBuilder enableCookie(boolean enableCookie); /** * @param policy * @return */ public JsonBuilder cachePolicy(CachePolicy policy); }