org.efaps.ui.webdav.method
Class AbstractMethod

java.lang.Object
  extended by org.efaps.ui.webdav.method.AbstractMethod
Direct Known Subclasses:
CopyMethod, DeleteMethod, GetMethod, HeadMethod, MkColMethod, MoveMethod, OptionsMethod, PropFindMethod, PutMethod

public abstract class AbstractMethod
extends java.lang.Object

Version:
$Id: AbstractMethod.java 3447 2009-11-29 22:46:39Z tim.moxter $
Author:
tmo

Nested Class Summary
static class AbstractMethod.Status
           
 
Field Summary
static int CLOSING
          Closing tag.
static int NO_CONTENT
          Element with no content.
static int OPENING
          Opening tag.
 
Constructor Summary
AbstractMethod()
           
 
Method Summary
protected  CollectionResource getCollection(int _endIndex, java.lang.String[] _uri)
           
protected  CollectionResource getCollection4ParentPath(java.lang.String _uri)
           
protected  AbstractResource getResource4Path(java.lang.String _uri)
           
abstract  void run(WebDAVRequest _request, javax.servlet.http.HttpServletResponse _response)
           
 void writeElement(java.io.Writer _writer, java.lang.String name, int type)
          Write an element.
 void writeText(java.io.Writer _writer, java.lang.String text)
          Write text.
 void writeXMLHeader(java.io.Writer _writer)
          Write XML Header.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPENING

public static final int OPENING
Opening tag.

See Also:
Constant Field Values

CLOSING

public static final int CLOSING
Closing tag.

See Also:
Constant Field Values

NO_CONTENT

public static final int NO_CONTENT
Element with no content.

See Also:
Constant Field Values
Constructor Detail

AbstractMethod

public AbstractMethod()
Method Detail

run

public abstract void run(WebDAVRequest _request,
                         javax.servlet.http.HttpServletResponse _response)
                  throws java.io.IOException,
                         javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException

getResource4Path

protected AbstractResource getResource4Path(java.lang.String _uri)

getCollection4ParentPath

protected CollectionResource getCollection4ParentPath(java.lang.String _uri)

getCollection

protected CollectionResource getCollection(int _endIndex,
                                           java.lang.String[] _uri)

writeText

public void writeText(java.io.Writer _writer,
                      java.lang.String text)
               throws java.io.IOException
Write text.

Parameters:
text - Text to append
Throws:
java.io.IOException

writeElement

public void writeElement(java.io.Writer _writer,
                         java.lang.String name,
                         int type)
                  throws java.io.IOException
Write an element.

Parameters:
namespace - Namespace abbreviation
namespaceInfo - Namespace info
name - Element name
type - Element type
Throws:
java.io.IOException

writeXMLHeader

public void writeXMLHeader(java.io.Writer _writer)
                    throws java.io.IOException
Write XML Header.

Throws:
java.io.IOException


Copyright © 2003-2010 The eFaps Team. All Rights Reserved.