org.eclipse.webdav.internal.kernel
Class Context

java.lang.Object
  extended by org.eclipse.webdav.internal.kernel.Context
All Implemented Interfaces:
IContext

public class Context
extends Object
implements IContext

The Context class is essentially a collection of key-value pairings, with defaults. Implements the Context interface which provides convenience methods for most HTTP and WebDAV message header fields. To be done: 1) Types that take and return dates have not been changed. We need to write date formats to cope with the different strings that we may be sent, see the HTTP spec for details. 2) Identify the fields where multiple values are permissible, and change the params to be arrays of values.


Nested Class Summary
protected  class Context.ContextKey
           
 class Context.ContextKeyToStringEnum
           
 
Field Summary
 String ACCEPT
           
 String ACCEPT_CHARSET
           
 String ACCEPT_ENCODING
           
 String ACCEPT_LANGUAGE
           
 String ACCEPT_RANGES
           
 String AGE
           
 String ALL_BINDINGS
           
 String ALLOW
           
 String AUTHORIZATION
           
 String CACHE_CONTROL
           
 String CONNECTION
           
 String CONTENT_BASE
           
 String CONTENT_ENCODING
           
 String CONTENT_LANGUAGE
           
 String CONTENT_LENGTH
           
 String CONTENT_LOCATION
           
 String CONTENT_MD5
           
 String CONTENT_RANGE
           
 String CONTENT_TYPE
           
 String DATE
           
 String DAV
           
protected  IContext defaults
           
 String DEPTH
           
 String DESTINATION
           
 String ETAG
           
 String EXPIRES
           
 String FROM
           
 String HOST
           
 String IF
           
 String IF_MATCH
           
 String IF_MODIFIED_SINCE
           
 String IF_NONE_MATCH
           
 String IF_RANGE
           
 String IF_UNMODIFIED_SINCE
           
 String LABEL
           
 String LAST_MODIFIED
           
 String LOCATION
           
 String LOCK_TOKEN
           
 String MAX_FORWARDS
           
 String ORDERED
           
 String OVERWRITE
           
 String PASSTHROUGH
           
 String POSITION
           
 String PRAGMA
           
protected  Hashtable properties
           
 String PROXY_AUTHENTICATE
           
 String PROXY_AUTHORIZATION
           
 String PUBLIC
           
 String RANGE
           
 String REF_TARGET
           
 String REFERER
           
 String RES_TYPE
           
 String RETRY_AFTER
           
 String SERVER
           
 String STATUS_URI
           
 String TIMEOUT
           
 String TRANSFER_ENCODING
           
 String UPGRADE
           
 String USER_AGENT
           
 String VARY
           
 String VIA
           
 String WARNING
           
 String WWW_AUTHENTICATE
           
 
Fields inherited from interface org.eclipse.webdav.IContext
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO, EXCLUSIVE_LOCK, NO_CACHE, NO_EXPIRY_LOCK, SHARED_LOCK, WRITE_LOCK
 
Constructor Summary
Context()
           
Context(IContext defaults)
          Constructor for the class.
 
Method Summary
 void collapse()
          Copy all the default values into the receiver.
 String get(String key)
          Return the value for the given key.
 String getAccept()
          Gets the media types that are acceptable for a response.
 String getAcceptCharset()
          Gets the character sets that are acceptable for a response.
 String getAcceptEncoding()
          Get what content-encoding values are acceptable for a response.
 String getAcceptLanguage()
          Get the natural languages that are acceptable for a response.
 String getAcceptRanges()
          Get the range requests acceptable to a server.
 int getAge()
          Get the sender's estimate of the time since the response was generated.
 String getAllBindings()
          Return the string value for the ALL_BINDINGS key.
 String getAllow()
          Gets the methods allowed on a resource Return the string value for the ALLOW key.
 String getAuthorization()
          Get the user's credentials for the realm of the resource being requested.
 String getCacheControl()
          Get the cache control directives that must be obeyed.
 String getConnection()
          Get sender connection options.
 String getContentBase()
          Return the String value for the CONTENT_BASE key.
 String getContentEncoding()
          Get what additional content encodings have been applied to the entity body.
 String getContentLanguage()
          Gets the natural language of the intended audience for the entity body.
 long getContentLength()
          Get the content length in bytes of the entity body.
 String getContentLocation()
          Return the String value for the CONTENT_LOCATION key.
 String getContentMD5()
          Return the string value for the CONTENT_MD5 key.
 String getContentRange()
          Return the string value for the CONTENT_RANGE key.
 String getContentType()
          Get the MIME type for the response contents.
 String getDate()
          The date the request was made.
 String getDAV()
          Get the DAV level supported by the server.
 String getDepth()
          Return the string value for the DEPTH key.
 String getDestination()
          Get the destination URI for a copy or move operation.
 String getETag()
          Get the entity tag for the associated entity.
 String getExpires()
          Get the date/time after which the response should be considered stale.
 String getFrom()
          Return the string value for the FROM key.
 String getHost()
          Get the Internet host and port of the resource being requested.
 String getIfKey()
          Return the string value for the IF key.
 String getIfMatch()
          Return the string value for the IF_MATCH key.
 String getIfModifiedSince()
          Return the string value for the IF_MODIFIED_SINCE key.
 String getIfNoneMatch()
          Return the string value for the IF_NONE_MATCH key.
 String getIfRange()
          Return the string value for the IF_RANGE key.
 String getIfUnmodifiedSince()
          Return the string value for the IF_UNMODIFIED_SINC key.
 String getLabel()
          Get the message label selector.
 String getLastModified()
          Get when the resource was last modified.
 String getLocation()
          Get the redirect location.
 String getLockToken()
          Gets the lock token for the resource, or null if it is not set.
 int getMaxForwards()
          Return the integer value for the MAX_FORWARDS key.
 String getOrdered()
          Return the string value for the ORDERED key.
 boolean getOverwrite()
          Get the flag that indicates if copy or move should overwrite an existing destination.
 boolean getPassthrough()
          Return the boolean value for the PASSTHROUGH key.
 String getPosition()
          Return the string value for the POSITION key.
 String getPragma()
          Return the string value for the PRAGMA key.
 String getPrecondition()
          Get any precondition that must be true in order for method execution to be successful.
 String getProxyAuthenticate()
          Return the string value for the PROXY_AUTHENTICATE key.
 String getProxyAuthorization()
          Return the string value for the PROXY_AUTHORIZATION key.
 String getPublicKey()
          Return the string value for the PUBLIC_KEY key.
 String getRange()
          Return the string value for the RANGE key.
 String getReferer()
          Get the URI of the resource from which the request was obtained.
 String getRefTarget()
          Return the URI value for the REF_TARGET key.
 String getResourceType()
          Return the string value for the RESOURCE_TYPE key.
 String getRetryAfter()
          Return the string value for the RETRY_AFTER key.
 String getServer()
          Get information about the software used by the origin server to handle the request.
 String getStatusURI()
          Get the String of the resource whose method is in process.
 int getTimeout()
          Get the lock timeout value.
 String getTransferEncoding()
          Return the string value for the TRANSFER_ENCODING key.
 String getUpgrade()
          Return the string value for the UPGRADE key.
 String getUserAgent()
          Get information about the user agent originating the request.
 String getVary()
          Return the string value for the VARY key.
 String getVia()
          Return the string value for the VIA key.
 String getWarning()
          Return the string value for the WARNING key.
 String getWWWAuthenticate()
          Return the string value for the WWW_AUTHENTICATE key.
 Enumeration keys()
          Return an enumeration over the context's keys.
 void put(String key, String value)
          Put the given key-value pair into the context.
 void removeKey(String key)
          Remove the given key from the context
 void setAccept(String value)
          Set what media types are acceptable for a response.
 void setAcceptCharset(String value)
          Sets which character sets are acceptable for a response.
 void setAcceptEncoding(String value)
          Set the content-encoding values which are acceptable for a response.
 String setAcceptLanguage()
          Get the natural languages that are acceptable for a response.
 void setAcceptLanguage(String value)
          Set which natural languages are acceptable for a response.
 void setAcceptRanges(String value)
          Set the range requests acceptable to a server.
 void setAge(int seconds)
          Set the sender's estimate of the time since the response was generated.
 void setAllBindings(String s)
          Set the string value for the ALL_BINDINGS key.
 void setAllow(String value)
          Sets methods allowed on a resource Set the string value for the ALLOW key.
 void setAuthorization(String value)
          Set the user's credentials for the realm of the resource being requested.
 void setCacheControl(String value)
          Set the cache control directives that must be obeyed.
 void setConnection(String value)
          Set sender connection options.
 void setContentBase(String url)
          Set the String URL value for the CONTENT_BASE key.
 void setContentEncoding(String value)
          Sets the additional content encodings that have been applied to the entity body.
 void setContentLanguage(String value)
          Sets the natural language of the intended audience for the entity body.
 void setContentLength(long value)
          Set the content length in bytes of the entity body.
 void setContentLocation(String value)
          Set the String URI value for the CONTENT_LOCATION key.
 void setContentMD5(String value)
          Set the string value for the CONTENT_MD5 key.
 void setContentRange(String value)
          Set the string value for the CONTENT_RANGE key.
 void setContentType(String value)
          Set the MIME type for the response contents.
 void setDate(String value)
          Set the date the request was made.
 void setDAV(String value)
          Set the DAV level supported by the server.
 void setDepth(String s)
          Set the string value for the DEPTH key.
 void setDestination(String value)
          Set the destination URI for a copy or move operation.
 void setETag(String value)
          Set the entity tag for the associated entity.
 void setExpires(String value)
          Set the date/time after which the response should be considered stale.
 void setFrom(String s)
          Set the string value for the FROM key.
 void setHost(String value)
          Set the Internet host and port of the resource being requested.
 void setIfKey(String s)
          Set the string value for the IF key.
 void setIfMatch(String s)
          Set the string value for the IF_MATCH key.
 void setIfModifiedSince(String s)
          Set the string value for the IF_MODIFIED_SINCE key.
 void setIfNoneMatch(String s)
          Set the string value for the IF_NONE_MATCH key.
 void setIfRange(String s)
          Set the string value for the IF_RANGE key.
 void setIfUnmodifiedSince(String s)
          Set the string value for the IF_UNMODIFIED_SINCE key.
 void setLabel(String value)
          Set the method's label selector.
 void setLastModified(String value)
          Set when the resource was last modified.
 void setLocation(String value)
          Sets the redirect location.
 void setLockToken(String token)
          Set the lock token for the resource.
 void setMaxForwards(int i)
          Set the integer value for the MAX_FORWARDS key.
 void setOrdered(String value)
          Set the string value for the ORDERED key.
 void setOverwrite(boolean value)
          Set if copy or move should overwrite an existing destination.
 void setPassthrough(boolean value)
          Set the boolean value for the PASSTHROUGH key.
 void setPosition(String s)
          Set the string value for the POSITION key.
 void setPragma(String value)
          Set the string value for the PRAGMA key.
 void setPrecondition(String value)
          Set any precondition that must be true in order for method execution to be successful.
 void setProxyAuthenticate(String value)
          Set the string value for the PROXY_AUTHENTICATE key.
 void setProxyAuthorization(String value)
          Set the string value for the PROXY_AUTHORIZATION key.
 void setPublicKey(String value)
          Set the string value for the PUBLIC_KEY key.
 void setRange(String value)
          Set the string value for the RANGE key.
 void setReferer(String value)
          Set the URI of the resource from which the request was obtained.
 void setRefTarget(String value)
          Set the URI value for the REF_TARGET key.
 void setResourceType(String value)
          Set the string value for the RESOURCE_TYPE key.
 void setRetryAfter(String value)
          Set the string value for the RETRY_AFTER key.
 void setServer(String value)
          Set information about the software used by the origin server to handle the request.
 void setStatusURI(String value)
          Set the URI of the resource whose method is in process.
 void setTimeout(int value)
          Set the lock timeout value in seconds.
 void setTransferEncoding(String value)
          Set the string value for the TRANSFER_ENCODING key.
 void setUpgrade(String value)
          Set the string value for the UPGRADE key.
 void setUserAgent(String value)
          Set information about the user agent originating the request.
 void setVary(String value)
          Set the string value for the VARY key.
 void setVia(String value)
          Set the string value for the VIA key.
 void setWarning(String value)
          Set the string value for the WARNING key.
 void setWWWAuthenticate(String value)
          Set the string value for the WWW_AUTHENTICATE key.
 String toString()
          Return a string representation of the context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

properties

protected Hashtable properties

defaults

protected IContext defaults

ACCEPT

public final String ACCEPT
See Also:
Constant Field Values

ACCEPT_CHARSET

public final String ACCEPT_CHARSET
See Also:
Constant Field Values

ACCEPT_ENCODING

public final String ACCEPT_ENCODING
See Also:
Constant Field Values

ACCEPT_LANGUAGE

public final String ACCEPT_LANGUAGE
See Also:
Constant Field Values

ACCEPT_RANGES

public final String ACCEPT_RANGES
See Also:
Constant Field Values

AGE

public final String AGE
See Also:
Constant Field Values

ALLOW

public final String ALLOW
See Also:
Constant Field Values

AUTHORIZATION

public final String AUTHORIZATION
See Also:
Constant Field Values

CACHE_CONTROL

public final String CACHE_CONTROL
See Also:
Constant Field Values

CONNECTION

public final String CONNECTION
See Also:
Constant Field Values

CONTENT_BASE

public final String CONTENT_BASE
See Also:
Constant Field Values

CONTENT_ENCODING

public final String CONTENT_ENCODING
See Also:
Constant Field Values

CONTENT_LANGUAGE

public final String CONTENT_LANGUAGE
See Also:
Constant Field Values

CONTENT_LENGTH

public final String CONTENT_LENGTH
See Also:
Constant Field Values

CONTENT_LOCATION

public final String CONTENT_LOCATION
See Also:
Constant Field Values

CONTENT_MD5

public final String CONTENT_MD5
See Also:
Constant Field Values

CONTENT_RANGE

public final String CONTENT_RANGE
See Also:
Constant Field Values

CONTENT_TYPE

public final String CONTENT_TYPE
See Also:
Constant Field Values

DATE

public final String DATE
See Also:
Constant Field Values

ETAG

public final String ETAG
See Also:
Constant Field Values

EXPIRES

public final String EXPIRES
See Also:
Constant Field Values

FROM

public final String FROM
See Also:
Constant Field Values

HOST

public final String HOST
See Also:
Constant Field Values

IF_MODIFIED_SINCE

public final String IF_MODIFIED_SINCE
See Also:
Constant Field Values

IF_MATCH

public final String IF_MATCH
See Also:
Constant Field Values

IF_NONE_MATCH

public final String IF_NONE_MATCH
See Also:
Constant Field Values

IF_RANGE

public final String IF_RANGE
See Also:
Constant Field Values

IF_UNMODIFIED_SINCE

public final String IF_UNMODIFIED_SINCE
See Also:
Constant Field Values

LAST_MODIFIED

public final String LAST_MODIFIED
See Also:
Constant Field Values

LOCATION

public final String LOCATION
See Also:
Constant Field Values

MAX_FORWARDS

public final String MAX_FORWARDS
See Also:
Constant Field Values

PRAGMA

public final String PRAGMA
See Also:
Constant Field Values

PROXY_AUTHENTICATE

public final String PROXY_AUTHENTICATE
See Also:
Constant Field Values

PROXY_AUTHORIZATION

public final String PROXY_AUTHORIZATION
See Also:
Constant Field Values

PUBLIC

public final String PUBLIC
See Also:
Constant Field Values

RANGE

public final String RANGE
See Also:
Constant Field Values

REFERER

public final String REFERER
See Also:
Constant Field Values

RETRY_AFTER

public final String RETRY_AFTER
See Also:
Constant Field Values

SERVER

public final String SERVER
See Also:
Constant Field Values

TRANSFER_ENCODING

public final String TRANSFER_ENCODING
See Also:
Constant Field Values

UPGRADE

public final String UPGRADE
See Also:
Constant Field Values

USER_AGENT

public final String USER_AGENT
See Also:
Constant Field Values

VARY

public final String VARY
See Also:
Constant Field Values

VIA

public final String VIA
See Also:
Constant Field Values

WARNING

public final String WARNING
See Also:
Constant Field Values

WWW_AUTHENTICATE

public final String WWW_AUTHENTICATE
See Also:
Constant Field Values

DAV

public final String DAV
See Also:
Constant Field Values

DEPTH

public final String DEPTH
See Also:
Constant Field Values

DESTINATION

public final String DESTINATION
See Also:
Constant Field Values

IF

public final String IF
See Also:
Constant Field Values

LOCK_TOKEN

public final String LOCK_TOKEN
See Also:
Constant Field Values

OVERWRITE

public final String OVERWRITE
See Also:
Constant Field Values

STATUS_URI

public final String STATUS_URI
See Also:
Constant Field Values

TIMEOUT

public final String TIMEOUT
See Also:
Constant Field Values

ALL_BINDINGS

public final String ALL_BINDINGS
See Also:
Constant Field Values

REF_TARGET

public final String REF_TARGET
See Also:
Constant Field Values

RES_TYPE

public final String RES_TYPE
See Also:
Constant Field Values

PASSTHROUGH

public final String PASSTHROUGH
See Also:
Constant Field Values

ORDERED

public final String ORDERED
See Also:
Constant Field Values

POSITION

public final String POSITION
See Also:
Constant Field Values

LABEL

public final String LABEL
See Also:
Constant Field Values
Constructor Detail

Context

public Context()

Context

public Context(IContext defaults)
Constructor for the class. Set the property defaults to be the given value.

Parameters:
defaults - the default property values for the context
Method Detail

collapse

public void collapse()
Copy all the default values into the receiver.

Specified by:
collapse in interface IContext

get

public String get(String key)
Return the value for the given key.

Specified by:
get in interface IContext
Parameters:
key - the key to look up
Returns:
the value for the key or null if none.

getAccept

public String getAccept()
Gets the media types that are acceptable for a response. Return the string value for the ACCEPT key.

Implements the corresponding API in the interface Context.

Specified by:
getAccept in interface IContext
Returns:
the value for ACCEPT
See Also:
getAccept()

getAcceptCharset

public String getAcceptCharset()
Gets the character sets that are acceptable for a response. Return the string value for the ACCEPT_CHARSET key.

Implements the corresponding API in the interface Context.

Specified by:
getAcceptCharset in interface IContext
Returns:
the value for ACCEPT_CHARSET
See Also:
getAcceptCharset()

getAcceptEncoding

public String getAcceptEncoding()
Get what content-encoding values are acceptable for a response. Return the string value for the ACCEPT_ENCODING key.

Implements the corresponding API in the interface Context.

Specified by:
getAcceptEncoding in interface IContext
Returns:
the value for ACCEPT_ENCODING
See Also:
getAcceptEncoding()

getAcceptLanguage

public String getAcceptLanguage()
Get the natural languages that are acceptable for a response. Return the string value for the ACCEPT_LANGUAGE key.

Implements the corresponding API in the interface Context.

Specified by:
getAcceptLanguage in interface IContext
Returns:
the value for ACCEPT_LANGUAGE
See Also:
getAcceptLanguage()

getAcceptRanges

public String getAcceptRanges()
Get the range requests acceptable to a server. Return the string value for the ACCEPT_RANGES key.

Implements the corresponding API in the interface Context.

Specified by:
getAcceptRanges in interface IContext
Returns:
the value for ACCEPT_RANGES
See Also:
getAcceptRanges()

getAge

public int getAge()
Get the sender's estimate of the time since the response was generated. Return the int value for the AGE key. Return -1 if the value is not set.

Implements the corresponding API in the interface Context.

Specified by:
getAge in interface IContext
Returns:
the value for AGE
See Also:
getAge()

getAllBindings

public String getAllBindings()
Return the string value for the ALL_BINDINGS key.

Implements the corresponding API in the interface Context.

Specified by:
getAllBindings in interface IContext
Returns:
the value for ALL_BINDINGS
See Also:
getAllBindings()

getAllow

public String getAllow()
Gets the methods allowed on a resource Return the string value for the ALLOW key.

Implements the corresponding API in the interface Context.

Specified by:
getAllow in interface IContext
Returns:
the value for ALLOW
See Also:
getAllow()

getAuthorization

public String getAuthorization()
Get the user's credentials for the realm of the resource being requested. Return the string value for the AUTHORIZATION key.

Implements the corresponding API in the interface Context.

Specified by:
getAuthorization in interface IContext
Returns:
the value for AUTHORIZATION
See Also:
getAuthorization()

getCacheControl

public String getCacheControl()
Get the cache control directives that must be obeyed. Return the string value for the CACHE_CONTROL key.

Implements the corresponding API in the interface Context.

Specified by:
getCacheControl in interface IContext
Returns:
the value for CACHE_CONTROL
See Also:
getCacheControl()

getConnection

public String getConnection()
Get sender connection options. Return the string value for the CONNECTION key.

Implements the corresponding API in the interface Context.

Specified by:
getConnection in interface IContext
Returns:
the value for CONNECTION
See Also:
getConnection()

getContentBase

public String getContentBase()
Return the String value for the CONTENT_BASE key.

Implements the corresponding API in the interface Context.

Specified by:
getContentBase in interface IContext
Returns:
the value for CONTENT_BASE
See Also:
getContentBase()

getContentEncoding

public String getContentEncoding()
Get what additional content encodings have been applied to the entity body. Return the string value for the CONTENT_ENCODING key.

Implements the corresponding API in the interface Context.

Specified by:
getContentEncoding in interface IContext
Returns:
the value for CONTENT_ENCODING
See Also:
getContentEncoding()

getContentLanguage

public String getContentLanguage()
Gets the natural language of the intended audience for the entity body. Return the string value for the CONTENT_LANGUAGE key.

Implements the corresponding API in the interface Context.

Specified by:
getContentLanguage in interface IContext
Returns:
the value for CONTENT_LANGUAGE
See Also:
getContentLanguage()

getContentLength

public long getContentLength()
Get the content length in bytes of the entity body. Return the value for the CONTENT_LENGTH key. Returns -1 if the Content-Length has not been set.

Implements the corresponding API in the interface Context.

Specified by:
getContentLength in interface IContext
Returns:
the value for CONTENT_LENGTH
See Also:
getContentLength()

getContentLocation

public String getContentLocation()
Return the String value for the CONTENT_LOCATION key.

Implements the corresponding API in the interface Context.

Specified by:
getContentLocation in interface IContext
Returns:
the value for CONTENT_LOCATION
See Also:
getContentLocation()

getContentMD5

public String getContentMD5()
Return the string value for the CONTENT_MD5 key.

Implements the corresponding API in the interface Context.

Specified by:
getContentMD5 in interface IContext
Returns:
the value for CONTENT_MD5
See Also:
getContentMD5()

getContentRange

public String getContentRange()
Return the string value for the CONTENT_RANGE key.

Implements the corresponding API in the interface Context.

Specified by:
getContentRange in interface IContext
Returns:
the value for CONTENT_RANGE
See Also:
getContentRange()

getContentType

public String getContentType()
Get the MIME type for the response contents. Return the string value for the CONTENT_TYPE key.

Implements the corresponding API in the interface Context.

Specified by:
getContentType in interface IContext
Returns:
the value for CONTENT_TYPE
See Also:
getContentType()

getDate

public String getDate()
The date the request was made. Return the string value for the DATE key.

Implements the corresponding API in the interface Context.

Specified by:
getDate in interface IContext
Returns:
the value for DATE
See Also:
getDate()

getDAV

public String getDAV()
Get the DAV level supported by the server. Return the string value for the DAV key.

Implements the corresponding API in the interface Context.

Specified by:
getDAV in interface IContext
Returns:
the value for DAV
See Also:
getDAV()

getDepth

public String getDepth()
Return the string value for the DEPTH key.

Implements the corresponding API in the interface Context.

Specified by:
getDepth in interface IContext
Returns:
the value for DEPTH
See Also:
getDepth()

getDestination

public String getDestination()
Get the destination URI for a copy or move operation. Return the URI value for the DESTINATION key.

Implements the corresponding API in the interface Context.

Specified by:
getDestination in interface IContext
Returns:
the value for DESTINATION
See Also:
getDestination()

getETag

public String getETag()
Get the entity tag for the associated entity. Return the string value for the ETAG key.

Implements the corresponding API in the interface Context.

Specified by:
getETag in interface IContext
Returns:
the value for ETAG
See Also:
getETag()

getExpires

public String getExpires()
Get the date/time after which the response should be considered stale. Return the string value for the EXPIRES key.

Implements the corresponding API in the interface Context.

Specified by:
getExpires in interface IContext
Returns:
the value for EXPIRES
See Also:
getExpires()

getFrom

public String getFrom()
Return the string value for the FROM key.

Implements the corresponding API in the interface Context.

Specified by:
getFrom in interface IContext
Returns:
the value for FROM
See Also:
getFrom()

getHost

public String getHost()
Get the Internet host and port of the resource being requested. Return the string value for the HOST key.

Implements the corresponding API in the interface Context.

Specified by:
getHost in interface IContext
Returns:
the value for HOST
See Also:
HOST

getIfKey

public String getIfKey()
Return the string value for the IF key.

Implements the corresponding API in the interface Context.

Specified by:
getIfKey in interface IContext
Returns:
the value for IF
See Also:
getIfKey()

getIfMatch

public String getIfMatch()
Return the string value for the IF_MATCH key.

Implements the corresponding API in the interface Context.

Specified by:
getIfMatch in interface IContext
Returns:
the value for IF_MATCH
See Also:
getIfMatch()

getIfModifiedSince

public String getIfModifiedSince()
Return the string value for the IF_MODIFIED_SINCE key.

Implements the corresponding API in the interface Context.

Specified by:
getIfModifiedSince in interface IContext
Returns:
the value for IF_MODIFIED_SINCE
See Also:
getIfModifiedSince()

getIfNoneMatch

public String getIfNoneMatch()
Return the string value for the IF_NONE_MATCH key.

Implements the corresponding API in the interface Context.

Specified by:
getIfNoneMatch in interface IContext
Returns:
the value for IF_NONE_MATCH
See Also:
getIfNoneMatch()

getIfRange

public String getIfRange()
Return the string value for the IF_RANGE key.

Implements the corresponding API in the interface Context.

Specified by:
getIfRange in interface IContext
Returns:
the value for IF_RANGE
See Also:
getIfRange()

getIfUnmodifiedSince

public String getIfUnmodifiedSince()
Return the string value for the IF_UNMODIFIED_SINC key.

Implements the corresponding API in the interface Context.

Specified by:
getIfUnmodifiedSince in interface IContext
Returns:
the value for IF_UNMODIFIED_SINCE
See Also:
getIfUnmodifiedSince()

getLabel

public String getLabel()
Get the message label selector. Return the string value for the LABEL key.

Implements the corresponding API in the interface Context.

Specified by:
getLabel in interface IContext
Returns:
the value for LABEL
See Also:
getLabel()

getLastModified

public String getLastModified()
Get when the resource was last modified. Return the string value for the LAST_MODIFIED key.

Implements the corresponding API in the interface Context.

Specified by:
getLastModified in interface IContext
Returns:
the value for LAST_MODIFIED
See Also:
getLastModified()

getLocation

public String getLocation()
Get the redirect location. Return the URI value for the LOCATION key.

Implements the corresponding API in the interface Context.

Specified by:
getLocation in interface IContext
Returns:
the value for LOCATION
See Also:
getLocation()

getLockToken

public String getLockToken()
Gets the lock token for the resource, or null if it is not set. Return the lock token value for the LOCK_TOKEN key.

Implements the corresponding API in the interface Context.

Specified by:
getLockToken in interface IContext
Returns:
the value for LOCK_TOKEN
See Also:
getLockToken()

getMaxForwards

public int getMaxForwards()
Return the integer value for the MAX_FORWARDS key.

Implements the corresponding API in the interface Context.

Specified by:
getMaxForwards in interface IContext
Returns:
the value for MAX_FORWARDS
See Also:
getMaxForwards()

getOrdered

public String getOrdered()
Return the string value for the ORDERED key.

Implements the corresponding API in the interface Context.

Specified by:
getOrdered in interface IContext
Returns:
the value for ORDERED
See Also:
getOrdered()

getOverwrite

public boolean getOverwrite()
Get the flag that indicates if copy or move should overwrite an existing destination. Return the boolean value for the OVERWRITE key.

Implements the corresponding API in the interface Context.

Specified by:
getOverwrite in interface IContext
Returns:
the value for OVERWRITE
See Also:
OVERWRITE

getPassthrough

public boolean getPassthrough()
Return the boolean value for the PASSTHROUGH key.

Implements the corresponding API in the interface Context.

Specified by:
getPassthrough in interface IContext
Returns:
the value for PASSTHROUGH
See Also:
getPassthrough()

getPosition

public String getPosition()
Return the string value for the POSITION key.

Implements the corresponding API in the interface Context.

Specified by:
getPosition in interface IContext
Returns:
the value for POSITION
See Also:
getPosition()

getPragma

public String getPragma()
Return the string value for the PRAGMA key.

Implements the corresponding API in the interface Context.

Specified by:
getPragma in interface IContext
Returns:
the value for PRAGMA
See Also:
getPragma()

getPrecondition

public String getPrecondition()
Get any precondition that must be true in order for method execution to be successful. A precondition corresponds to the WebDAV "If" header.

Implements the corresponding API in the interface Context.

Returns:
the value for PRECONDITION
See Also:
getPrecondition()

getProxyAuthenticate

public String getProxyAuthenticate()
Return the string value for the PROXY_AUTHENTICATE key.

Implements the corresponding API in the interface Context.

Specified by:
getProxyAuthenticate in interface IContext
Returns:
the value for PROXY_AUTHENTICATE
See Also:
getProxyAuthenticate()

getProxyAuthorization

public String getProxyAuthorization()
Return the string value for the PROXY_AUTHORIZATION key.

Implements the corresponding API in the interface Context.

Specified by:
getProxyAuthorization in interface IContext
Returns:
the value for PROXY_AUTHORIZATION
See Also:
getProxyAuthorization()

getPublicKey

public String getPublicKey()
Return the string value for the PUBLIC_KEY key.

Implements the corresponding API in the interface Context.

Specified by:
getPublicKey in interface IContext
Returns:
the value for PUBLIC_KEY
See Also:
getPublicKey()

getRange

public String getRange()
Return the string value for the RANGE key.

Implements the corresponding API in the interface Context.

Specified by:
getRange in interface IContext
Returns:
the value for RANGE
See Also:
getRange()

getReferer

public String getReferer()
Get the URI of the resource from which the request was obtained. Return the String value for the REFERER key.

Implements the corresponding API in the interface Context.

Specified by:
getReferer in interface IContext
Returns:
the value for REFERER
See Also:
getReferer()

getRefTarget

public String getRefTarget()
Return the URI value for the REF_TARGET key.

Implements the corresponding API in the interface Context.

Specified by:
getRefTarget in interface IContext
Returns:
the value for REF_TARGET
See Also:
getRefTarget()

getResourceType

public String getResourceType()
Return the string value for the RESOURCE_TYPE key.

Implements the corresponding API in the interface Context.

Specified by:
getResourceType in interface IContext
Returns:
the value for RESOURCE_TYPE
See Also:
getResourceType()

getRetryAfter

public String getRetryAfter()
Return the string value for the RETRY_AFTER key.

Implements the corresponding API in the interface Context.

Specified by:
getRetryAfter in interface IContext
Returns:
the value for RETRY_AFTER
See Also:
getRetryAfter()

getServer

public String getServer()
Get information about the software used by the origin server to handle the request. Return the string value for the SERVER key.

Implements the corresponding API in the interface Context.

Specified by:
getServer in interface IContext
Returns:
the value for SERVER
See Also:
getServer()

getStatusURI

public String getStatusURI()
Get the String of the resource whose method is in process. Return the URI value for the STATUS_URI key.

Implements the corresponding API in the interface Context.

Specified by:
getStatusURI in interface IContext
Returns:
the value for STATUS_URI
See Also:
getStatusURI()

getTimeout

public int getTimeout()
Get the lock timeout value. The value -1 means that the value was not set, the value -2 means that the value was "Infinity". Return the integer value for the TIMEOUT key.

Implements the corresponding API in the interface Context.

Specified by:
getTimeout in interface IContext
Returns:
the value for TIMEOUT
See Also:
getTimeout()

getTransferEncoding

public String getTransferEncoding()
Return the string value for the TRANSFER_ENCODING key.

Implements the corresponding API in the interface Context.

Specified by:
getTransferEncoding in interface IContext
Returns:
the value for TRANSFER_ENCODING
See Also:
getTransferEncoding()

getUpgrade

public String getUpgrade()
Return the string value for the UPGRADE key.

Implements the corresponding API in the interface Context.

Specified by:
getUpgrade in interface IContext
Returns:
the value for UPGRADE
See Also:
getUpgrade()

getUserAgent

public String getUserAgent()
Get information about the user agent originating the request. Return the string value for the USER_AGENT key.

Implements the corresponding API in the interface Context.

Specified by:
getUserAgent in interface IContext
Returns:
the value for USER_AGENT
See Also:
getUserAgent()

getVary

public String getVary()
Return the string value for the VARY key.

Implements the corresponding API in the interface Context.

Specified by:
getVary in interface IContext
Returns:
the value for VARY
See Also:
getVary()

getVia

public String getVia()
Return the string value for the VIA key.

Implements the corresponding API in the interface Context.

Specified by:
getVia in interface IContext
Returns:
the value for VIA
See Also:
getVia()

getWarning

public String getWarning()
Return the string value for the WARNING key.

Implements the corresponding API in the interface Context.

Specified by:
getWarning in interface IContext
Returns:
the value for WARNING
See Also:
getWarning()

getWWWAuthenticate

public String getWWWAuthenticate()
Return the string value for the WWW_AUTHENTICATE key.

Implements the corresponding API in the interface Context.

Specified by:
getWWWAuthenticate in interface IContext
Returns:
the value for WWW_AUTHENTICATE
See Also:
getWWWAuthenticate()

keys

public Enumeration keys()
Return an enumeration over the context's keys. (recursively computes the keys based on keys defaults as well)

Specified by:
keys in interface IContext
Returns:
an enumeration over the context keys

put

public void put(String key,
                String value)
Put the given key-value pair into the context.

Specified by:
put in interface IContext
Parameters:
key - the key
value - its associated value

removeKey

public void removeKey(String key)
Remove the given key from the context

Specified by:
removeKey in interface IContext
Parameters:
key - the key to remove

setAccept

public void setAccept(String value)
Set what media types are acceptable for a response. Set the string value for the ACCEPT key.

Implements the corresponding API in the interface Context.

Specified by:
setAccept in interface IContext
Parameters:
value - the value for ACCEPT
See Also:
setAccept(String)

setAcceptCharset

public void setAcceptCharset(String value)
Sets which character sets are acceptable for a response. Set the string value for the ACCEPT_CHARSET key.

Implements the corresponding API in the interface Context.

Specified by:
setAcceptCharset in interface IContext
Parameters:
value - the value for ACCEPT_CHARSET
See Also:
setAcceptCharset(String)

setAcceptEncoding

public void setAcceptEncoding(String value)
Set the content-encoding values which are acceptable for a response. Set the string value for the ACCEPT_ENCODING key.

Implements the corresponding API in the interface Context.

Specified by:
setAcceptEncoding in interface IContext
Parameters:
value - the value for ACCEPT_ENCODING
See Also:
setAcceptEncoding(String)

setAcceptLanguage

public String setAcceptLanguage()
Get the natural languages that are acceptable for a response. Return the string value for the ACCEPT_LANGUAGE key.

Implements the corresponding API in the interface Context.

Returns:
the value for ACCEPT_LANGUAGE
See Also:
setAcceptLanguage()

setAcceptLanguage

public void setAcceptLanguage(String value)
Set which natural languages are acceptable for a response. Set the string value for the ACCEPT_LANGUAGE key.

Implements the corresponding API in the interface Context.

Specified by:
setAcceptLanguage in interface IContext
Parameters:
value - the value for ACCEPT_LANGUAGE
See Also:
setAcceptLanguage(String)

setAcceptRanges

public void setAcceptRanges(String value)
Set the range requests acceptable to a server. Set the string value for the ACCEPT_RANGES key.

Implements the corresponding API in the interface Context.

Specified by:
setAcceptRanges in interface IContext
Parameters:
value - the value for ACCEPT_RANGES
See Also:
setAcceptRanges(String)

setAge

public void setAge(int seconds)
Set the sender's estimate of the time since the response was generated. Set the int value for the AGE key. Set the value to -1 to remove the key.

Implements the corresponding API in the interface Context.

Specified by:
setAge in interface IContext
Parameters:
seconds - the value for AGE
See Also:
setAge(int)

setAllBindings

public void setAllBindings(String s)
Set the string value for the ALL_BINDINGS key.

Implements the corresponding API in the interface Context.

Specified by:
setAllBindings in interface IContext
Parameters:
s - the value for ALL_BINDINGS
See Also:
setAllBindings(String)

setAllow

public void setAllow(String value)
Sets methods allowed on a resource Set the string value for the ALLOW key.

Implements the corresponding API in the interface Context.

Specified by:
setAllow in interface IContext
Parameters:
value - the value for ALLOW
See Also:
setAllow(String)

setAuthorization

public void setAuthorization(String value)
Set the user's credentials for the realm of the resource being requested. Set the string value for the AUTHORIZATION key.

Implements the corresponding API in the interface Context.

Specified by:
setAuthorization in interface IContext
Parameters:
value - the value for AUTHORIZATION
See Also:
setAuthorization(String)

setCacheControl

public void setCacheControl(String value)
Set the cache control directives that must be obeyed. Set the string value for the CACHE_CONTROL key.

Implements the corresponding API in the interface Context.

Specified by:
setCacheControl in interface IContext
Parameters:
value - the value for CACHE_CONTROL
See Also:
setCacheControl(String)

setConnection

public void setConnection(String value)
Set sender connection options. Set the string value for the CONNECTION key.

Implements the corresponding API in the interface Context.

Specified by:
setConnection in interface IContext
Parameters:
value - the value for CONNECTION
See Also:
setConnection(String)

setContentBase

public void setContentBase(String url)
Set the String URL value for the CONTENT_BASE key.

Implements the corresponding API in the interface Context.

Specified by:
setContentBase in interface IContext
Parameters:
url - the value for CONTENT_BASE
See Also:
setContentBase(String)

setContentEncoding

public void setContentEncoding(String value)
Sets the additional content encodings that have been applied to the entity body. Set the string value for the CONTENT_ENCODING key.

Implements the corresponding API in the interface Context.

Specified by:
setContentEncoding in interface IContext
Parameters:
value - the value for CONTENT_ENCODING
See Also:
setContentEncoding(String)

setContentLanguage

public void setContentLanguage(String value)
Sets the natural language of the intended audience for the entity body. Set the string value for the CONTENT_LANGUAGE key.

Implements the corresponding API in the interface Context.

Specified by:
setContentLanguage in interface IContext
Parameters:
value - the value for CONTENT_LANGUAGE
See Also:
setContentLanguage(String)

setContentLength

public void setContentLength(long value)
Set the content length in bytes of the entity body. Set the value for the CONTENT_LENGTH key. Pass the value -1 to remove the key.

Implements the corresponding API in the interface Context.

Specified by:
setContentLength in interface IContext
Parameters:
value - the value for CONTENT_LENGTH
See Also:
setContentLength(long)

setContentLocation

public void setContentLocation(String value)
Set the String URI value for the CONTENT_LOCATION key.

Implements the corresponding API in the interface Context.

Specified by:
setContentLocation in interface IContext
Parameters:
value - the value for CONTENT_LOCATION
See Also:
setContentLocation(String)

setContentMD5

public void setContentMD5(String value)
Set the string value for the CONTENT_MD5 key.

Implements the corresponding API in the interface Context.

Specified by:
setContentMD5 in interface IContext
Parameters:
value - the value for CONTENT_MD5
See Also:
setContentMD5(String)

setContentRange

public void setContentRange(String value)
Set the string value for the CONTENT_RANGE key.

Implements the corresponding API in the interface Context.

Specified by:
setContentRange in interface IContext
Parameters:
value - the value for CONTENT_RANGE
See Also:
setContentRange(String)

setContentType

public void setContentType(String value)
Set the MIME type for the response contents. Set the string value for the CONTENT_TYPE key.

Implements the corresponding API in the interface Context.

Specified by:
setContentType in interface IContext
Parameters:
value - the value for CONTENT_TYPE
See Also:
setContentType(String)

setDate

public void setDate(String value)
Set the date the request was made. Set the string value for the DATE key.

Implements the corresponding API in the interface Context.

Specified by:
setDate in interface IContext
Parameters:
value - the value for DATE
See Also:
setDate(String)

setDAV

public void setDAV(String value)
Set the DAV level supported by the server. Set the string value for the DAV key.

Implements the corresponding API in the interface Context.

Specified by:
setDAV in interface IContext
Parameters:
value - the value for DAV
See Also:
setDAV(String)

setDepth

public void setDepth(String s)
Set the string value for the DEPTH key.

Implements the corresponding API in the interface Context.

Specified by:
setDepth in interface IContext
Parameters:
s - the value for DEPTH
See Also:
setDepth(String)

setDestination

public void setDestination(String value)
Set the destination URI for a copy or move operation. Set the URI value for the DESTINATION key.

Implements the corresponding API in the interface Context.

Specified by:
setDestination in interface IContext
Parameters:
value - the value for DESTINATION
See Also:
setDestination(String)

setETag

public void setETag(String value)
Set the entity tag for the associated entity. Set the string value for the ETAG key.

Implements the corresponding API in the interface Context.

Specified by:
setETag in interface IContext
Parameters:
value - the value for ETAG
See Also:
setETag(String)

setExpires

public void setExpires(String value)
Set the date/time after which the response should be considered stale. Set the string value for the EXPIRES key.

Implements the corresponding API in the interface Context.

Specified by:
setExpires in interface IContext
Parameters:
value - the value for EXPIRES
See Also:
setExpires(String)

setFrom

public void setFrom(String s)
Set the string value for the FROM key.

Implements the corresponding API in the interface Context.

Specified by:
setFrom in interface IContext
Parameters:
s - the value for FROM
See Also:
FROM

setHost

public void setHost(String value)
Set the Internet host and port of the resource being requested. Set the string value for the HOST key.

Implements the corresponding API in the interface Context.

Specified by:
setHost in interface IContext
Parameters:
value - the value for HOST
See Also:
setHost(String)

setIfKey

public void setIfKey(String s)
Set the string value for the IF key.

Implements the corresponding API in the interface Context.

Specified by:
setIfKey in interface IContext
Parameters:
s - the value for IF
See Also:
setIfKey(String)

setIfMatch

public void setIfMatch(String s)
Set the string value for the IF_MATCH key.

Implements the corresponding API in the interface Context.

Specified by:
setIfMatch in interface IContext
Parameters:
s - the value for IF_MATCH
See Also:
setIfMatch(String)

setIfModifiedSince

public void setIfModifiedSince(String s)
Set the string value for the IF_MODIFIED_SINCE key.

Implements the corresponding API in the interface Context.

Specified by:
setIfModifiedSince in interface IContext
Parameters:
s - the value for IF_MODIFIED_SINCE
See Also:
setIfModifiedSince(String)

setIfNoneMatch

public void setIfNoneMatch(String s)
Set the string value for the IF_NONE_MATCH key.

Implements the corresponding API in the interface Context.

Specified by:
setIfNoneMatch in interface IContext
Parameters:
s - the value for IF_NONE_MATCH
See Also:
setIfNoneMatch(String)

setIfRange

public void setIfRange(String s)
Set the string value for the IF_RANGE key.

Implements the corresponding API in the interface Context.

Specified by:
setIfRange in interface IContext
Parameters:
s - the value for IF_RANGE
See Also:
setIfRange(String)

setIfUnmodifiedSince

public void setIfUnmodifiedSince(String s)
Set the string value for the IF_UNMODIFIED_SINCE key.

Implements the corresponding API in the interface Context.

Specified by:
setIfUnmodifiedSince in interface IContext
Parameters:
s - the value for IF_UNMODIFIED_SINCE
See Also:
setIfUnmodifiedSince(String)

setLabel

public void setLabel(String value)
Set the method's label selector. Set the string value for the LABEL key.

Implements the corresponding API in the interface Context.

Specified by:
setLabel in interface IContext
Parameters:
value - the value for LABEL
See Also:
setLabel(String)

setLastModified

public void setLastModified(String value)
Set when the resource was last modified. Set the string value for the LAST_MODIFIED key.

Implements the corresponding API in the interface Context.

Specified by:
setLastModified in interface IContext
Parameters:
value - the value for LAST_MODIFIED
See Also:
setLastModified(String)

setLocation

public void setLocation(String value)
Sets the redirect location. Set the URI value for the LOCATION key.

Implements the corresponding API in the interface Context.

Specified by:
setLocation in interface IContext
Parameters:
value - the value for LOCATION
See Also:
LOCATION

setLockToken

public void setLockToken(String token)
Set the lock token for the resource. Set the lock token value for the LOCK_TOKEN key.

Implements the corresponding API in the interface Context.

Specified by:
setLockToken in interface IContext
Parameters:
token - the value for LOCK_TOKEN
See Also:
setLockToken(String)

setMaxForwards

public void setMaxForwards(int i)
Set the integer value for the MAX_FORWARDS key.

Implements the corresponding API in the interface Context.

Specified by:
setMaxForwards in interface IContext
Parameters:
i - the value for MAX_FORWARDS
See Also:
setMaxForwards(int)

setOrdered

public void setOrdered(String value)
Set the string value for the ORDERED key.

Implements the corresponding API in the interface Context.

Specified by:
setOrdered in interface IContext
Parameters:
value - the value for ORDERED
See Also:
setOrdered(String)

setOverwrite

public void setOverwrite(boolean value)
Set if copy or move should overwrite an existing destination. Set the boolean value for the OVERWRITE key.

Implements the corresponding API in the interface Context.

Specified by:
setOverwrite in interface IContext
Parameters:
value - the value for OVERWRITE
See Also:
setOverwrite(boolean)

setPassthrough

public void setPassthrough(boolean value)
Set the boolean value for the PASSTHROUGH key.

Implements the corresponding API in the interface Context.

Specified by:
setPassthrough in interface IContext
Parameters:
value - the value for PASSTHROUGH
See Also:
setPassthrough(boolean)

setPosition

public void setPosition(String s)
Set the string value for the POSITION key.

Implements the corresponding API in the interface Context.

Specified by:
setPosition in interface IContext
Parameters:
s - the value for POSITION
See Also:
setPosition(String)

setPragma

public void setPragma(String value)
Set the string value for the PRAGMA key.

Implements the corresponding API in the interface Context.

Specified by:
setPragma in interface IContext
Parameters:
value - the value for PRAGMA
See Also:
setPragma(String)

setPrecondition

public void setPrecondition(String value)
Set any precondition that must be true in order for method execution to be successful. A precondition corresponds to the WebDAV "If" header.

Implements the corresponding API in the interface Context.

Parameters:
value - the value for the precondition
See Also:
setPrecondition(String)

setProxyAuthenticate

public void setProxyAuthenticate(String value)
Set the string value for the PROXY_AUTHENTICATE key.

Implements the corresponding API in the interface Context.

Specified by:
setProxyAuthenticate in interface IContext
Parameters:
value - the value for PROXY_AUTHENTICATE
See Also:
setProxyAuthenticate(String)

setProxyAuthorization

public void setProxyAuthorization(String value)
Set the string value for the PROXY_AUTHORIZATION key.

Implements the corresponding API in the interface Context.

Specified by:
setProxyAuthorization in interface IContext
Parameters:
value - the value for PROXY_AUTHORIZATION
See Also:
setProxyAuthorization(String)

setPublicKey

public void setPublicKey(String value)
Set the string value for the PUBLIC_KEY key.

Implements the corresponding API in the interface Context.

Specified by:
setPublicKey in interface IContext
Parameters:
value - the value for PUBLIC_KEY
See Also:
setPublicKey(String)

setRange

public void setRange(String value)
Set the string value for the RANGE key.

Implements the corresponding API in the interface Context.

Specified by:
setRange in interface IContext
Parameters:
value - the value for RANGE
See Also:
setRange(String)

setReferer

public void setReferer(String value)
Set the URI of the resource from which the request was obtained. Set the String value for the REFERER key.

Implements the corresponding API in the interface Context.

Specified by:
setReferer in interface IContext
Parameters:
value - the value for REFERER
See Also:
setReferer(String)

setRefTarget

public void setRefTarget(String value)
Set the URI value for the REF_TARGET key.

Implements the corresponding API in the interface Context.

Specified by:
setRefTarget in interface IContext
Parameters:
value - the value for REF_TARGET
See Also:
setRefTarget(String)

setResourceType

public void setResourceType(String value)
Set the string value for the RESOURCE_TYPE key.

Implements the corresponding API in the interface Context.

Specified by:
setResourceType in interface IContext
Parameters:
value - the value for RESOURCE_TYPE
See Also:
setResourceType(String)

setRetryAfter

public void setRetryAfter(String value)
Set the string value for the RETRY_AFTER key.

Implements the corresponding API in the interface Context.

Specified by:
setRetryAfter in interface IContext
Parameters:
value - the value for RETRY_AFTER
See Also:
setRetryAfter(String)

setServer

public void setServer(String value)
Set information about the software used by the origin server to handle the request. Set the string value for the SERVER key.

Implements the corresponding API in the interface Context.

Specified by:
setServer in interface IContext
Parameters:
value - the value for SERVER
See Also:
setServer(String)

setStatusURI

public void setStatusURI(String value)
Set the URI of the resource whose method is in process. Set the String value for the STATUS_URI key.

Implements the corresponding API in the interface Context.

Specified by:
setStatusURI in interface IContext
Parameters:
value - the value for STATUS_URI
See Also:
setStatusURI(String)

setTimeout

public void setTimeout(int value)
Set the lock timeout value in seconds. Pass -1 to clear the value, pass -2 to set "Infinity". Set the integer value for the TIMEOUT key.

Implements the corresponding API in the interface Context.

Specified by:
setTimeout in interface IContext
Parameters:
value - the value for TIMEOUT
See Also:
setTimeout(int)

setTransferEncoding

public void setTransferEncoding(String value)
Set the string value for the TRANSFER_ENCODING key.

Implements the corresponding API in the interface Context.

Specified by:
setTransferEncoding in interface IContext
Parameters:
value - the value for TRANSFER_ENCODING
See Also:
setTransferEncoding(String)

setUpgrade

public void setUpgrade(String value)
Set the string value for the UPGRADE key.

Implements the corresponding API in the interface Context.

Specified by:
setUpgrade in interface IContext
Parameters:
value - the value for UPGRADE
See Also:
setUpgrade(String)

setUserAgent

public void setUserAgent(String value)
Set information about the user agent originating the request. Set the string value for the USER_AGENT key.

Implements the corresponding API in the interface Context.

Specified by:
setUserAgent in interface IContext
Parameters:
value - the value for USER_AGENT
See Also:
setUserAgent(String)

setVary

public void setVary(String value)
Set the string value for the VARY key.

Implements the corresponding API in the interface Context.

Specified by:
setVary in interface IContext
Parameters:
value - the value for VARY
See Also:
setVary(String)

setVia

public void setVia(String value)
Set the string value for the VIA key.

Implements the corresponding API in the interface Context.

Specified by:
setVia in interface IContext
Parameters:
value - the value for VIA
See Also:
setVia(String)

setWarning

public void setWarning(String value)
Set the string value for the WARNING key.

Implements the corresponding API in the interface Context.

Specified by:
setWarning in interface IContext
Parameters:
value - the value for WARNING
See Also:
setWarning(String)

setWWWAuthenticate

public void setWWWAuthenticate(String value)
Set the string value for the WWW_AUTHENTICATE key.

Implements the corresponding API in the interface Context.

Specified by:
setWWWAuthenticate in interface IContext
Parameters:
value - the value for WWW_AUTHENTICATE
See Also:
setWWWAuthenticate(String)

toString

public String toString()
Return a string representation of the context.

Overrides:
toString in class Object
Returns:
the context, as a String


Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.