Liferay 6.2-ce-ga5

com.liferay.portal.resiliency.spi.agent
Class SPIAgentSerializable

java.lang.Object
  extended by com.liferay.portal.resiliency.spi.agent.SPIAgentSerializable
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
SPIAgentRequest, SPIAgentResponse

public class SPIAgentSerializable
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
protected  String servletContextName
           
protected  ThreadLocalDistributor[] threadLocalDistributors
           
 
Constructor Summary
SPIAgentSerializable(String servletContextName)
           
 
Method Summary
protected  void captureThreadLocals()
           
static Map<String,Serializable> extractDistributedRequestAttributes(javax.servlet.http.HttpServletRequest request, Direction direction)
           
static Map<String,List<String>> extractRequestHeaders(javax.servlet.http.HttpServletRequest request)
           
static Map<String,Serializable> extractSessionAttributes(javax.servlet.http.HttpServletRequest request)
           
static
<T extends SPIAgentSerializable>
T
readFrom(InputStream inputStream)
           
protected  void restoreThreadLocals()
           
 void writeTo(RegistrationReference registrationReference, OutputStream outputStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

servletContextName

protected transient String servletContextName

threadLocalDistributors

protected ThreadLocalDistributor[] threadLocalDistributors
Constructor Detail

SPIAgentSerializable

public SPIAgentSerializable(String servletContextName)
Method Detail

extractDistributedRequestAttributes

public static Map<String,Serializable> extractDistributedRequestAttributes(javax.servlet.http.HttpServletRequest request,
                                                                           Direction direction)

extractRequestHeaders

public static Map<String,List<String>> extractRequestHeaders(javax.servlet.http.HttpServletRequest request)

extractSessionAttributes

public static Map<String,Serializable> extractSessionAttributes(javax.servlet.http.HttpServletRequest request)

readFrom

public static <T extends SPIAgentSerializable> T readFrom(InputStream inputStream)
                                               throws IOException
Throws:
IOException

writeTo

public void writeTo(RegistrationReference registrationReference,
                    OutputStream outputStream)
             throws IOException
Throws:
IOException

captureThreadLocals

protected void captureThreadLocals()

restoreThreadLocals

protected void restoreThreadLocals()

Liferay 6.2-ce-ga5