|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovy.lang.GroovyObjectSupport
de.uplanet.lucy.server.connector.GroovyServerBridgeRequest
@Scriptable public final class GroovyServerBridgeRequest
Constructor Summary | |
---|---|
GroovyServerBridgeRequest(IServerBridgeRequest p_request)
|
Method Summary | |
---|---|
boolean |
containsKey(java.lang.String p_strKey)
Test if the request contains the specified variable. |
GroovyServerBridgeRequest |
createCopy()
Create a copy of the topmost state of this request. |
java.lang.String |
dump()
|
java.lang.String |
get(java.lang.String p_strKey)
Get a request variable. |
java.lang.String |
get(java.lang.String p_strKey,
java.lang.String p_strFallback)
Get a request variable. |
java.lang.Object |
getAt(java.lang.String p_strKey)
|
java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.String>> |
getEntrySet()
Get an unmodifiable set that contains all request variables. |
byte[] |
getHttpBody()
Get the HTTP body of the request. |
java.lang.Object |
getProperty(java.lang.String p_strKey)
|
boolean |
isEmpty()
|
java.util.Iterator<java.util.Map.Entry<java.lang.String,java.lang.String>> |
iterator()
|
void |
popVariables()
Deprecated. |
void |
pushVariables()
Deprecated. |
void |
put(java.lang.String p_strKey,
java.lang.String p_strValue)
Deprecated. DO ABSOLUTELY NOT USE THIS METHOD! |
void |
putAt(java.lang.String p_strKey,
java.lang.Object p_value)
Deprecated. DO ABSOLUTELY NOT USE THIS METHOD! |
void |
remove(java.lang.String p_strKey)
Remove the specified variable from the request. |
void |
setHttpBody(byte[] p_buf)
Set the HTTP body of the request. |
void |
setProperty(java.lang.String p_strKey,
java.lang.Object p_value)
|
int |
size()
|
Methods inherited from class groovy.lang.GroovyObjectSupport |
---|
getMetaClass, invokeMethod, setMetaClass |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GroovyServerBridgeRequest(IServerBridgeRequest p_request)
Method Detail |
---|
public java.lang.String get(java.lang.String p_strKey)
IServerBridgeRequest
get
in interface IServerBridgeRequest
p_strKey
- The key.
p_strKey
,
or null
if there is no such request variable.public java.lang.String get(java.lang.String p_strKey, java.lang.String p_strFallback)
IServerBridgeRequest
get
in interface IServerBridgeRequest
p_strKey
- The key.p_strFallback
- The fallback value.
p_strKey
, or
p_objFallback
if there is no such request variable.@Deprecated public void put(java.lang.String p_strKey, java.lang.String p_strValue)
IServerBridgeRequest
put
in interface IServerBridgeRequest
p_strKey
- The name of the request variable.p_strValue
- The value of the request variable.public void remove(java.lang.String p_strKey)
IServerBridgeRequest
remove
in interface IServerBridgeRequest
p_strKey
- The name of the variable to remove.public boolean containsKey(java.lang.String p_strKey)
IServerBridgeRequest
containsKey
in interface IServerBridgeRequest
p_strKey
- The name of the variable.
true
if the request contains the specified variable.public java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.String>> getEntrySet()
IServerBridgeRequest
getEntrySet
in interface IServerBridgeRequest
Map.Entry
s that contain
requests variable name-value-pairs.@Deprecated public void pushVariables()
IServerBridgeRequest
pushVariables
in interface IServerBridgeRequest
@Deprecated public void popVariables()
IServerBridgeRequest
popVariables
in interface IServerBridgeRequest
public GroovyServerBridgeRequest createCopy()
IServerBridgeRequest
The request created will have an empty stack.
createCopy
in interface IServerBridgeRequest
public int size()
size
in interface IServerBridgeRequest
public byte[] getHttpBody()
IServerBridgeRequest
Note: A call to this method does not create a copy of the data but returns a reference to the data instead. For this reason the caller must not modify the array returned.
getHttpBody
in interface IServerBridgeRequest
null
if the data are not available.public void setHttpBody(byte[] p_buf)
IServerBridgeRequest
setHttpBody
in interface IServerBridgeRequest
p_buf
- The HTTP body data.public boolean isEmpty()
public java.util.Iterator<java.util.Map.Entry<java.lang.String,java.lang.String>> iterator()
public java.lang.Object getProperty(java.lang.String p_strKey)
getProperty
in interface groovy.lang.GroovyObject
getProperty
in class groovy.lang.GroovyObjectSupport
public void setProperty(java.lang.String p_strKey, java.lang.Object p_value)
setProperty
in interface groovy.lang.GroovyObject
setProperty
in class groovy.lang.GroovyObjectSupport
public java.lang.Object getAt(java.lang.String p_strKey)
@Deprecated public void putAt(java.lang.String p_strKey, java.lang.Object p_value)
public java.lang.String dump()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |