org.abstracthorizon.danube.webdav.xml.dav.response.properties
Class GetContentLength

java.lang.Object
  extended by org.abstracthorizon.danube.webdav.xml.dav.response.properties.ResponseProperty
      extended by org.abstracthorizon.danube.webdav.xml.dav.response.properties.GetContentLength
All Implemented Interfaces:
XMLRenderer

public class GetContentLength
extends ResponseProperty

This class models WebDAV's getcontentlength response tag

Author:
Daniel Sendula

Field Summary
protected  long contentLength
          Content length
static String TAG_NAME
          Tag name
 
Fields inherited from class org.abstracthorizon.danube.webdav.xml.dav.response.properties.ResponseProperty
status
 
Constructor Summary
GetContentLength(long contentLength)
          Constructor
GetContentLength(Status status)
          Constructor
 
Method Summary
 long getContentLength()
          Returns content length
 void render(PrintWriter writer, NamespacesProvider provider)
          Renders the tag
 String toString()
           
 
Methods inherited from class org.abstracthorizon.danube.webdav.xml.dav.response.properties.ResponseProperty
getStatus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TAG_NAME

public static final String TAG_NAME
Tag name

See Also:
Constant Field Values

contentLength

protected long contentLength
Content length

Constructor Detail

GetContentLength

public GetContentLength(Status status)
Constructor

Parameters:
status - status

GetContentLength

public GetContentLength(long contentLength)
Constructor

Parameters:
contentLength - content length
Method Detail

getContentLength

public long getContentLength()
Returns content length

Returns:
content length

toString

public String toString()
Overrides:
toString in class Object

render

public void render(PrintWriter writer,
                   NamespacesProvider provider)
Renders the tag

Parameters:
writer - writer
provider - namespace provider


Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.