|
|||||||||
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.representation.StreamRepresentation
org.restlet.representation.OutputRepresentation
restgroupsServer.ProfileResourceReturnRepresentation
public class ProfileResourceReturnRepresentation
Instances of this class is returned by the GET (
ProfileResource.createProfile(org.restlet.representation.Representation)
) method. Customization of the OutputRepresentation is necessary for
detecting clients disconnection. It is because RESTlet framework does not
provide a way of determining the state of the HTTP connection yet.
Field Summary |
---|
Fields inherited from class org.restlet.representation.Representation |
---|
UNKNOWN_SIZE |
Constructor Summary | |
---|---|
ProfileResourceReturnRepresentation(org.restlet.data.MediaType mediaType,
java.util.concurrent.ConcurrentMap<java.lang.String,ProfileEntity> profileEntities,
java.util.concurrent.ConcurrentMap<java.lang.Long,ProfileEntity> profileEntitiesThreadIDs)
Constructor. |
|
ProfileResourceReturnRepresentation(org.restlet.data.MediaType mediaType,
long expectedSize,
java.util.concurrent.ConcurrentMap<java.lang.String,ProfileEntity> profileEntities,
java.util.concurrent.ConcurrentMap<java.lang.Long,ProfileEntity> profileEntitiesThreadIDs)
Constructor. |
Method Summary | |
---|---|
void |
finishWriting()
Sets the quitting flag to true |
void |
write(java.io.OutputStream arg0)
Writes every second a byte to the output stream. |
Methods inherited from class org.restlet.representation.OutputRepresentation |
---|
getStream, release |
Methods inherited from class org.restlet.representation.StreamRepresentation |
---|
getChannel, getReader, write, write |
Methods inherited from class org.restlet.representation.Representation |
---|
checkDigest, checkDigest, computeDigest, createEmpty, exhaust, getAvailableSize, getDigest, getDigester, getDigester, getDownloadName, getExpirationDate, getRange, getSize, getText, isAvailable, isDownloadable, isTransient, setAvailable, setDigest, setDownloadable, setDownloadName, setExpirationDate, setRange, setSize, setTransient |
Methods inherited from class org.restlet.representation.RepresentationInfo |
---|
getModificationDate, getTag, setModificationDate, setTag |
Methods inherited from class org.restlet.representation.Variant |
---|
createClientInfo, equals, getCharacterSet, getEncodings, getIdentifier, getLanguages, getMediaType, includes, isCompatible, setCharacterSet, setEncodings, setIdentifier, setIdentifier, setLanguages, setMediaType, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ProfileResourceReturnRepresentation(org.restlet.data.MediaType mediaType, java.util.concurrent.ConcurrentMap<java.lang.String,ProfileEntity> profileEntities, java.util.concurrent.ConcurrentMap<java.lang.Long,ProfileEntity> profileEntitiesThreadIDs)
mediaType
- media typeprofileEntities
- map containing ProfileEntity
objects for all active
clientsprofileEntitiesThreadIDs
- map containing ProfileEntity
objects for all active
clients indexed by ID of threads where the
ProfileResource.createProfile(org.restlet.representation.Representation)
is handled.public ProfileResourceReturnRepresentation(org.restlet.data.MediaType mediaType, long expectedSize, java.util.concurrent.ConcurrentMap<java.lang.String,ProfileEntity> profileEntities, java.util.concurrent.ConcurrentMap<java.lang.Long,ProfileEntity> profileEntitiesThreadIDs)
mediaType
- media typeexpectedSize
- expected sizeprofileEntities
- map containing ProfileEntity
objects for all activeprofileEntitiesThreadIDs
- map containing ProfileEntity
objects for all active
clients indexed by ID of threads where the
ProfileResource.createProfile(org.restlet.representation.Representation)
is handled.Method Detail |
---|
public void finishWriting()
public void write(java.io.OutputStream arg0) throws java.io.IOException
write
in class org.restlet.representation.Representation
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |