de.uplanet.lucy.server.connector
Class GroovyServerBridgeRequest

java.lang.Object
  extended by groovy.lang.GroovyObjectSupport
      extended by de.uplanet.lucy.server.connector.GroovyServerBridgeRequest
All Implemented Interfaces:
IServerBridgeRequest, groovy.lang.GroovyObject

@Scriptable
public final class GroovyServerBridgeRequest
extends groovy.lang.GroovyObjectSupport
implements IServerBridgeRequest

Version:
$Revision: 85052 $

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.
 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 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

GroovyServerBridgeRequest

public GroovyServerBridgeRequest(IServerBridgeRequest p_request)
Method Detail

get

public java.lang.String get(java.lang.String p_strKey)
Description copied from interface: IServerBridgeRequest
Get a request variable.

Specified by:
get in interface IServerBridgeRequest
Parameters:
p_strKey - The key.
Returns:
The value that is referenced by p_strKey, or null if there is no such request variable.

get

public java.lang.String get(java.lang.String p_strKey,
                            java.lang.String p_strFallback)
Description copied from interface: IServerBridgeRequest
Get a request variable.

Specified by:
get in interface IServerBridgeRequest
Parameters:
p_strKey - The key.
p_strFallback - The fallback value.
Returns:
The value that is referenced by p_strKey, or p_objFallback if there is no such request variable.

put

@Deprecated
public void put(java.lang.String p_strKey,
                           java.lang.String p_strValue)
Deprecated. DO ABSOLUTELY NOT USE THIS METHOD!

Description copied from interface: IServerBridgeRequest
Set a request variable.

Specified by:
put in interface IServerBridgeRequest
Parameters:
p_strKey - The name of the request variable.
p_strValue - The value of the request variable.

remove

public void remove(java.lang.String p_strKey)
Description copied from interface: IServerBridgeRequest
Remove the specified variable from the request.

Specified by:
remove in interface IServerBridgeRequest
Parameters:
p_strKey - The name of the variable to remove.

containsKey

public boolean containsKey(java.lang.String p_strKey)
Description copied from interface: IServerBridgeRequest
Test if the request contains the specified variable.

Specified by:
containsKey in interface IServerBridgeRequest
Parameters:
p_strKey - The name of the variable.
Returns:
true if the request contains the specified variable.

getEntrySet

public java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.String>> getEntrySet()
Description copied from interface: IServerBridgeRequest
Get an unmodifiable set that contains all request variables.

Specified by:
getEntrySet in interface IServerBridgeRequest
Returns:
A set containing Map.Entrys that contain requests variable name-value-pairs.

pushVariables

@Deprecated
public void pushVariables()
Deprecated. 

Description copied from interface: IServerBridgeRequest
Push request variables on the stack.

Specified by:
pushVariables in interface IServerBridgeRequest

popVariables

@Deprecated
public void popVariables()
Deprecated. 

Description copied from interface: IServerBridgeRequest
Pop request variables from the stack.

Specified by:
popVariables in interface IServerBridgeRequest

createCopy

public GroovyServerBridgeRequest createCopy()
Description copied from interface: IServerBridgeRequest
Create a copy of the topmost state of this request.

The request created will have an empty stack.

Specified by:
createCopy in interface IServerBridgeRequest
Returns:
The copy.

size

public int size()
Specified by:
size in interface IServerBridgeRequest
Returns:
Returns the number of request parameters in this request.

isEmpty

public boolean isEmpty()

iterator

public java.util.Iterator<java.util.Map.Entry<java.lang.String,java.lang.String>> iterator()

getProperty

public java.lang.Object getProperty(java.lang.String p_strKey)
Specified by:
getProperty in interface groovy.lang.GroovyObject
Overrides:
getProperty in class groovy.lang.GroovyObjectSupport

setProperty

public void setProperty(java.lang.String p_strKey,
                        java.lang.Object p_value)
Specified by:
setProperty in interface groovy.lang.GroovyObject
Overrides:
setProperty in class groovy.lang.GroovyObjectSupport

getAt

public java.lang.Object getAt(java.lang.String p_strKey)

putAt

@Deprecated
public void putAt(java.lang.String p_strKey,
                             java.lang.Object p_value)
Deprecated. DO ABSOLUTELY NOT USE THIS METHOD!


dump

public java.lang.String dump()


Last updated: 2011-08-11 10-04
Copyright © 2000-2011 United Planet. All Rights Reserved.