Class UnmodifiableCopyServletResponse

java.lang.Object
com.aoapps.servlet.subrequest.UnmodifiableCopyServletResponse
All Implemented Interfaces:
ServletResponse
Direct Known Subclasses:
UnmodifiableCopyHttpServletResponse

public class UnmodifiableCopyServletResponse extends Object implements ServletResponse
Achieves thread safety by making copies of most fields during constructor and being unmodifiable. This forms a base point for subrequests to diverge from.

Some methods have to read-through to the wrapped response, so it should not change state while this wrapper is in use. Synchronizes access to the wrapped response.