org.glite.security.authz
Class SimpleMessageContext

java.lang.Object
  extended byorg.glite.security.authz.SimpleMessageContext
All Implemented Interfaces:
javax.xml.rpc.handler.MessageContext

public class SimpleMessageContext
extends java.lang.Object
implements javax.xml.rpc.handler.MessageContext

Simple JAX-RPC MessageContext implementation to allow the authorization framework to be used outside of a full JAX-RPC engine implementation.


Constructor Summary
SimpleMessageContext()
           
 
Method Summary
 boolean containsProperty(java.lang.String name)
          checks if context contains property.
 java.lang.Object getProperty(java.lang.String name)
          gets property.
 java.util.Iterator getPropertyNames()
          gets the names of all properties in the context.
 void removeProperty(java.lang.String name)
          removes a property.
 void setProperty(java.lang.String name, java.lang.Object value)
          sets a property.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleMessageContext

public SimpleMessageContext()
Method Detail

containsProperty

public boolean containsProperty(java.lang.String name)
checks if context contains property.

Specified by:
containsProperty in interface javax.xml.rpc.handler.MessageContext
Parameters:
name - property name to look up
Returns:
true if property is found, false otherwise

getProperty

public java.lang.Object getProperty(java.lang.String name)
gets property.

Specified by:
getProperty in interface javax.xml.rpc.handler.MessageContext
Parameters:
name - property name to look up
Returns:
property value or null if no property was found

getPropertyNames

public java.util.Iterator getPropertyNames()
gets the names of all properties in the context.

Specified by:
getPropertyNames in interface javax.xml.rpc.handler.MessageContext
Returns:
iterator over property names (Strings)

removeProperty

public void removeProperty(java.lang.String name)
removes a property.

Specified by:
removeProperty in interface javax.xml.rpc.handler.MessageContext
Parameters:
name - the name of the property to be removed

setProperty

public void setProperty(java.lang.String name,
                        java.lang.Object value)
sets a property.

Specified by:
setProperty in interface javax.xml.rpc.handler.MessageContext
Parameters:
name - the name of the property to be set
value - the value of the property