org.apache.jackrabbit.webdav.io
Class InputContext

java.lang.Object
  extended byorg.apache.jackrabbit.webdav.io.InputContext

public class InputContext
extends Object

InputContext class encapsulates the InputStream and some header values as present in the POST, PUT or MKCOL request.


Constructor Summary
InputContext()
           
 
Method Summary
 String getContentLanguage()
          Returns the content language or null.
 String getContentType()
          Returns the content type of the resource to be imported or null, if no has previously been set.
 InputStream getInputStream()
          Returns the input stream to be imported or null if no stream has been set or if the stream has been consumed.
 void setContentLanguage(String contentLanguage)
          Sets the content language.
 void setContentType(String contentType)
          Sets the content type of the resource.
 void setInputStream(InputStream inputStream)
          Sets the input stream to be imported.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputContext

public InputContext()
Method Detail

getInputStream

public InputStream getInputStream()
Returns the input stream to be imported or null if no stream has been set or if the stream has been consumed.

Returns:
the input stream.

setInputStream

public void setInputStream(InputStream inputStream)
Sets the input stream to be imported. The input stream should be set to null if it has been consumed.

Parameters:
inputStream - the input stream

getContentType

public String getContentType()
Returns the content type of the resource to be imported or null, if no has previously been set.

Returns:
the content type of the resource

setContentType

public void setContentType(String contentType)
Sets the content type of the resource.

Parameters:
contentType - the content type.

getContentLanguage

public String getContentLanguage()
Returns the content language or null.

Returns:
contentLanguage

setContentLanguage

public void setContentLanguage(String contentLanguage)
Sets the content language.

Parameters:
contentLanguage -


Copyright © 2005 . All Rights Reserved.