Package com.sun.enterprise.admin.remote
Class RemoteResponseManager
java.lang.Object
com.sun.enterprise.admin.remote.RemoteResponseManager
- All Implemented Interfaces:
ResponseManager
This class is responsible for handling the Remote Server response. Note that an unusul paradigm is used here. Success
is signaled by throwing a "success" exception. This breaks the overarching rule about Exceptions but is very useful
in CLI. CLI has the pattern of: Error: Throw an Exception Success: Don't throw an Exception The logic becomes
difficult. The command itself has to know how to print a success message properly instead of just putting such a
message inside an Exception object and throwing it. In such a system it is cleaner to do this: Error: throw failure
exception Success: throw success exception
- Author:
- bnevins
-
Constructor Summary
ConstructorsConstructorDescriptionRemoteResponseManager(InputStream in, int code, Logger logger) Deprecated.RemoteResponseManager(InputStream in, Charset charset, int code, Logger logger) -
Method Summary
-
Constructor Details
-
RemoteResponseManager
@Deprecated(since="7.0.18") public RemoteResponseManager(InputStream in, int code, Logger logger) throws RemoteException, IOException Deprecated.It is encouraged to use theRemoteResponseManager(java.io.InputStream, java.nio.charset.Charset, int, java.util.logging.Logger)constructor with explicit charset. This constructor is kept only for backwards compatibility with the IntelliJ Idea plugin.Creates the object with the default charset by delegating to theRemoteResponseManager(java.io.InputStream, java.nio.charset.Charset, int, java.util.logging.Logger)constructor.- Parameters:
in-code-logger-- Throws:
RemoteExceptionIOException
-
RemoteResponseManager
public RemoteResponseManager(InputStream in, Charset charset, int code, Logger logger) throws RemoteException, IOException - Throws:
RemoteExceptionIOException
-
-
Method Details
-
process
- Specified by:
processin interfaceResponseManager- Throws:
RemoteException
-
getMainAtts
-
RemoteResponseManager(java.io.InputStream, java.nio.charset.Charset, int, java.util.logging.Logger)constructor with explicit charset.