java.lang.Object
com.mjh.switchrmi.protocol.raw.RawProtocol
- All Implemented Interfaces:
- com.mjh.switchrmi.RmiProtocol
- public class RawProtocol
- extends java.lang.Object
- implements com.mjh.switchrmi.RmiProtocol
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static final org.apache.log4j.Logger log
RawProtocol
public RawProtocol()
getName
public java.lang.String getName()
- Specified by:
getName in interface com.mjh.switchrmi.RmiProtocol
getMimeType
public java.lang.String getMimeType()
- Specified by:
getMimeType in interface com.mjh.switchrmi.RmiProtocol
createRequest
public com.mjh.switchrmi.RmiRequest createRequest(java.lang.reflect.Method method,
java.lang.Object[] args,
com.mjh.switchrmi.RmiContext context)
- Specified by:
createRequest in interface com.mjh.switchrmi.RmiProtocol
createResponse
public com.mjh.switchrmi.RmiResponse createResponse(com.mjh.switchrmi.RmiRequest request,
java.lang.Object result,
com.mjh.switchrmi.RmiContext context)
- Specified by:
createResponse in interface com.mjh.switchrmi.RmiProtocol
writeRequest
public void writeRequest(com.mjh.switchrmi.RmiRequest request,
com.mjh.switchrmi.RmiContext context)
throws java.lang.Exception
- Specified by:
writeRequest in interface com.mjh.switchrmi.RmiProtocol
readResponse
public com.mjh.switchrmi.RmiResponse readResponse(com.mjh.switchrmi.RmiContext context)
throws java.lang.Exception
- Specified by:
readResponse in interface com.mjh.switchrmi.RmiProtocol
readRequest
public com.mjh.switchrmi.RmiRequest readRequest(com.mjh.switchrmi.RmiContext context)
throws java.lang.Exception
- Specified by:
readRequest in interface com.mjh.switchrmi.RmiProtocol
writeResponse
public void writeResponse(com.mjh.switchrmi.RmiResponse response,
com.mjh.switchrmi.RmiContext context)
throws java.lang.Exception
- Specified by:
writeResponse in interface com.mjh.switchrmi.RmiProtocol
writeObject
private void writeObject(java.lang.Object object,
com.mjh.switchrmi.RmiContext context)
throws java.lang.Exception
readObject
private java.lang.Object readObject(com.mjh.switchrmi.RmiContext context)
throws java.lang.Exception
debug
private void debug(java.lang.String msg)