Package org.archive.crawler.restlet
Class EditRepresentation
java.lang.Object
org.restlet.representation.Variant
org.restlet.representation.RepresentationInfo
org.restlet.representation.Representation
org.restlet.representation.CharacterRepresentation
org.archive.crawler.restlet.EditRepresentation
public class EditRepresentation
extends org.restlet.representation.CharacterRepresentation
Representation wrapping a FileRepresentation, displaying its contents
in a TextArea for editing.
- Author:
- gojomo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected EnhDirectoryResource
protected org.restlet.representation.FileRepresentation
Fields inherited from class org.restlet.representation.Representation
UNKNOWN_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionEditRepresentation
(org.restlet.representation.FileRepresentation representation, EnhDirectoryResource resource) -
Method Summary
Modifier and TypeMethodDescriptionorg.restlet.representation.FileRepresentation
protected String
getStaticRef
(String resource) void
Methods inherited from class org.restlet.representation.CharacterRepresentation
getChannel, getStream, write, write
Methods inherited from class org.restlet.representation.Representation
append, exhaust, getAvailableSize, getDigest, getDisposition, getExpirationDate, getRange, getRegistration, getSize, getText, hasKnownSize, isAvailable, isEmpty, isSelectable, isTransient, release, setAvailable, setDigest, setDisposition, setExpirationDate, setListener, 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, getLanguages, getLocationRef, getMediaType, hashCode, includes, isCompatible, setCharacterSet, setEncodings, setLanguages, setLocationRef, setLocationRef, setMediaType, toString
-
Field Details
-
fileRepresentation
protected org.restlet.representation.FileRepresentation fileRepresentation -
dirResource
-
-
Constructor Details
-
EditRepresentation
public EditRepresentation(org.restlet.representation.FileRepresentation representation, EnhDirectoryResource resource)
-
-
Method Details
-
getReader
- Specified by:
getReader
in classorg.restlet.representation.Representation
- Throws:
IOException
-
getStaticRef
-
write
- Specified by:
write
in classorg.restlet.representation.Representation
- Throws:
IOException
-
getFileRepresentation
public org.restlet.representation.FileRepresentation getFileRepresentation()
-