anvil.core.net
Class AnyRequest

java.lang.Object
  |
  +--anvil.core.Any
        |
        +--anvil.core.AnyAbstractClass
              |
              +--anvil.core.net.AnyRequest
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable

public class AnyRequest
extends AnyAbstractClass

AnyRequest combines HttpServletRequest and MultipartRequest. It handles also file uploads.


Field Summary
static NativeClass _class
           
static java.lang.Object[] p_getHeader
           
static java.lang.Object[] p_getSession
           
 
Fields inherited from class anvil.core.Any
ARRAY0, DOUBLE_MINUS_ONE, DOUBLE_ONE, DOUBLE_ZERO, EMPTY_STRING, EMPTY_TUPLE, FALSE, INF, IS_ARRAY, IS_BINARY, IS_BOOLEAN, IS_BUFFER, IS_CLASS, IS_DOUBLE, IS_ENUMERATION, IS_INF, IS_INT, IS_LIST, IS_MAP, IS_NEG_INF, IS_NULL, IS_PATTERN, IS_RANGE, IS_STRING, IS_TUPLE, IS_UNDEFINED, MINUS_ONE, NAN, NEG_INF, NULL, ONE, p_compareTo, p_each, p_equals, p_pipe, p_select, THREE, TRUE, TWO, UNDEFINED, ZERO
 
Constructor Summary
AnyRequest(javax.servlet.http.HttpServletRequest request)
           
AnyRequest(javax.servlet.http.HttpServletRequest request, boolean handleAttachments)
           
 
Method Summary
 ClassType classOf()
          Returns the type of this Any.
 boolean deleteAttribute(Context context, java.lang.String attribute)
           
 boolean deleteReference(Context context, Any index)
           
 Any getAttribute(Context context, java.lang.String attribute)
           
 Any getReference(Context context, Any index)
           
 BindingIterator iterator()
           
 Any m_getAuthType()
           
 Any m_getContentLength()
           
 Any m_getContentType()
           
 Any m_getContextPath()
           
 Any m_getCookies()
           
 Any m_getHeader(java.lang.String headerName)
           
 Any m_getHeaderNames()
           
 Any m_getMethod()
           
 Any m_getPathInfo()
           
 Any m_getProtocol()
           
 Any m_getQueryString()
           
 Any m_getRemoteAddr()
           
 Any m_getRemoteHost()
           
 Any m_getRemoteUser()
           
 Any m_getRequestedSessionId()
           
 Any m_getRequestURI()
           
 Any m_getServerName()
           
 Any m_getServerPort()
           
 Any m_getServletPath()
           
 Any m_getSession(Any create)
           
 Any m_isRequestedSessionIdFromCookie()
           
 Any m_isRequestedSessionIdFromURL()
           
 Any m_isRequestedSessionValid()
           
protected  void putParameter(Array base, Any key, java.lang.Object value)
           
 Any setAttribute(Context context, java.lang.String attribute, Any value)
           
 Any setReference(Context context, Any value)
           
 Any setReference(Context context, Any index, Any value)
           
 int sizeOf()
          Returns the logical size of this any.
 java.lang.Object toObject()
          Gets the contained value as java.lang.Object.
 
Methods inherited from class anvil.core.AnyAbstractClass
doSerialize, isMutable, serialize, serializeObject, toBoolean, toString, typeOf, unserialize, unserializeObject
 
Methods inherited from class anvil.core.Any
_clone, _copy, _invoke, _invoke, _invoke, _invoke, _invoke, _invoke, _serialize, _unserialize, _wakeup, add, classNameOf, clone, coerce, compare, compareTo, concat, contains, copy, create, create, create, create, create, create, create, create, create, create, create, create, create, create, decrease, divide, equals, execute, execute, execute, execute, execute, execute, getRef, has, increase, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, isArray, isBinary, isBoolean, isBuffer, isDefined, isDouble, isInstanceOf, isInt, isIterator, isList, isMap, isNull, isPattern, isRange, isRef, isSequence, isString, isTuple, isUndefined, m_clone, m_compareTo, m_copy, m_each, m_equals, m_hashCode, m_pipe, m_select, m_toBoolean, m_toString, minus, modulo, multiply, not, plus, setRef, subtract, toAnvil, toAnvil, toAnyBoolean, toAnyDouble, toAnyInt, toAnyString, toArray, toBinary, toBuffer, toByte, toChar, toCode, toDouble, toInt, toList, toLong, toMap, toPattern, toRange, toTuple, type
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

p_getHeader

public static final java.lang.Object[] p_getHeader

p_getSession

public static final java.lang.Object[] p_getSession

_class

public static final NativeClass _class
Constructor Detail

AnyRequest

public AnyRequest(javax.servlet.http.HttpServletRequest request)

AnyRequest

public AnyRequest(javax.servlet.http.HttpServletRequest request,
                  boolean handleAttachments)
Method Detail

putParameter

protected void putParameter(Array base,
                            Any key,
                            java.lang.Object value)

classOf

public final ClassType classOf()
Description copied from class: Any
Returns the type of this Any.

Specified by:
classOf in class AnyAbstractClass

sizeOf

public int sizeOf()
Description copied from class: Any
Returns the logical size of this any.

Overrides:
sizeOf in class Any
Returns:
Logical size

toObject

public java.lang.Object toObject()
Description copied from class: Any
Gets the contained value as java.lang.Object.

Overrides:
toObject in class Any
Returns:
Value as Object.

getAttribute

public Any getAttribute(Context context,
                        java.lang.String attribute)
Overrides:
getAttribute in class Any

setAttribute

public Any setAttribute(Context context,
                        java.lang.String attribute,
                        Any value)
Overrides:
setAttribute in class Any

deleteAttribute

public boolean deleteAttribute(Context context,
                               java.lang.String attribute)
Overrides:
deleteAttribute in class Any

getReference

public Any getReference(Context context,
                        Any index)
Overrides:
getReference in class Any

setReference

public Any setReference(Context context,
                        Any index,
                        Any value)
Overrides:
setReference in class Any

setReference

public Any setReference(Context context,
                        Any value)
Overrides:
setReference in class Any

deleteReference

public boolean deleteReference(Context context,
                               Any index)
Overrides:
deleteReference in class Any

iterator

public BindingIterator iterator()
Overrides:
iterator in class Any

m_getAuthType

public Any m_getAuthType()

m_getContentLength

public Any m_getContentLength()

m_getContentType

public Any m_getContentType()

m_getHeaderNames

public Any m_getHeaderNames()

m_getHeader

public Any m_getHeader(java.lang.String headerName)

m_getMethod

public Any m_getMethod()

m_getPathInfo

public Any m_getPathInfo()

m_getQueryString

public Any m_getQueryString()

m_getRemoteUser

public Any m_getRemoteUser()

m_getRequestURI

public Any m_getRequestURI()

m_getContextPath

public Any m_getContextPath()

m_getServletPath

public Any m_getServletPath()

m_getRemoteAddr

public Any m_getRemoteAddr()

m_getRemoteHost

public Any m_getRemoteHost()

m_getServerName

public Any m_getServerName()

m_getServerPort

public Any m_getServerPort()

m_getProtocol

public Any m_getProtocol()

m_getCookies

public Any m_getCookies()

m_getSession

public Any m_getSession(Any create)

m_getRequestedSessionId

public Any m_getRequestedSessionId()

m_isRequestedSessionIdFromCookie

public Any m_isRequestedSessionIdFromCookie()

m_isRequestedSessionIdFromURL

public Any m_isRequestedSessionIdFromURL()

m_isRequestedSessionValid

public Any m_isRequestedSessionValid()