Package org.jboss.jbossts.star.client
Class Current
- java.lang.Object
-
- org.jboss.jbossts.star.client.Current
-
public class Current extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidclearContext(javax.ws.rs.core.MultivaluedMap<String,String> headers)static <T> TgetLast(List<T> objects)static ObjectgetState(String key)static URLpeek()static URLpop()static booleanpop(URL sra)static voidpopAll()static voidpush(URL sraId)push the current context onto the stack of contexts for this threadstatic ObjectputState(String key, Object value)static voidupdateSRAContext(URL sraId, javax.ws.rs.core.MultivaluedMap<String,String> headers)static voidupdateSRAContext(javax.ws.rs.core.MultivaluedMap<String,Object> headers)ObjectupdateState(String key, Object value)
-
-
-
Method Detail
-
getLast
public static <T> T getLast(List<T> objects)
-
peek
public static URL peek()
-
pop
public static URL pop()
-
pop
public static boolean pop(URL sra)
-
push
public static void push(URL sraId)
push the current context onto the stack of contexts for this thread- Parameters:
sraId- id of context to push (must not be null)
-
updateSRAContext
public static void updateSRAContext(javax.ws.rs.core.MultivaluedMap<String,Object> headers)
-
popAll
public static void popAll()
-
clearContext
public static void clearContext(javax.ws.rs.core.MultivaluedMap<String,String> headers)
-
-