|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.representation.Variant
org.restlet.representation.RepresentationInfo
org.restlet.representation.Representation
org.restlet.util.WrapperRepresentation
org.restlet.engine.http.io.ClosingRepresentation
public class ClosingRepresentation
Wrapper representation to close the associated socket when the representation is released.
Field Summary |
---|
Fields inherited from class org.restlet.representation.Representation |
---|
UNKNOWN_SIZE |
Constructor Summary | |
---|---|
ClosingRepresentation(Representation wrappedRepresentation,
Socket socket,
Logger logger)
Constructor. |
Method Summary | |
---|---|
void |
release()
Closes the socket if necessary. |
Methods inherited from class org.restlet.representation.Representation |
---|
createEmpty |
Methods inherited from class org.restlet.representation.Variant |
---|
createClientInfo, equals, includes, isCompatible, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ClosingRepresentation(Representation wrappedRepresentation, Socket socket, Logger logger)
wrappedRepresentation
- The wrapped representation.socket
- The associated socket.logger
- The associated logger.Method Detail |
---|
public void release()
release
in class WrapperRepresentation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |