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

    Fields
    Modifier and Type
    Field
    Description
     
    protected org.restlet.representation.FileRepresentation
     

    Fields inherited from class org.restlet.representation.Representation

    UNKNOWN_SIZE
  • Constructor Summary

    Constructors
    Constructor
    Description
    EditRepresentation(org.restlet.representation.FileRepresentation representation, EnhDirectoryResource resource)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.restlet.representation.FileRepresentation
     
     
    protected String
    getStaticRef(String resource)
     
    void
    write(Writer writer)
     

    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

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • fileRepresentation

      protected org.restlet.representation.FileRepresentation fileRepresentation
    • dirResource

      protected EnhDirectoryResource dirResource
  • Constructor Details

    • EditRepresentation

      public EditRepresentation(org.restlet.representation.FileRepresentation representation, EnhDirectoryResource resource)
  • Method Details

    • getReader

      public Reader getReader() throws IOException
      Specified by:
      getReader in class org.restlet.representation.Representation
      Throws:
      IOException
    • getStaticRef

      protected String getStaticRef(String resource)
    • write

      public void write(Writer writer) throws IOException
      Specified by:
      write in class org.restlet.representation.Representation
      Throws:
      IOException
    • getFileRepresentation

      public org.restlet.representation.FileRepresentation getFileRepresentation()