|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.rmi.server.RemoteObject java.rmi.server.RemoteServer java.rmi.server.UnicastRemoteObject org.norther.tammi.spray.remote.HttpRMIClientImpl
public class HttpRMIClientImpl
An implementation of an RMI client connecting to the server through RMI and providing callbacks to return the response from the server.
Field Summary | |
---|---|
protected static String |
CONNECTION
Connection header. |
protected static String |
CONTENT_LENGTH
Content-Length header. |
protected static String |
CONTENT_TYPE
Content-Type header. |
Fields inherited from class java.rmi.server.RemoteObject |
---|
ref |
Constructor Summary | |
---|---|
HttpRMIClientImpl(HttpServletResponse res)
Contructs a new RMI client. |
Method Summary | |
---|---|
void |
close()
Closes the connection. |
boolean |
isClosed()
Checks the closed state. |
void |
setHeaders(Map<String,String[]> headers)
Sets headers as a map of Vectors. |
void |
write(byte[] buffer,
int off,
int len)
Writes a response. |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
---|
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
---|
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
---|
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final String CONTENT_LENGTH
protected static final String CONTENT_TYPE
protected static final String CONNECTION
Constructor Detail |
---|
public HttpRMIClientImpl(HttpServletResponse res) throws RemoteException
res
- a client response.
RemoteException
- on errors.Method Detail |
---|
public void setHeaders(Map<String,String[]> headers) throws RemoteException
HttpRMIClient
setHeaders
in interface HttpRMIClient
headers
- the header map.
RemoteException
- on errors.public void write(byte[] buffer, int off, int len) throws RemoteException
write
in interface HttpRMIClient
buffer
- a buffer to write.off
- an offset.len
- length.
RemoteException
- on errors.public void close() throws RemoteException
close
in interface HttpRMIClient
RemoteException
- on errors.public boolean isClosed()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |