AdviceRequest Interface

com.bea.p13n.advisor
AdviceRequest Interface

public interface AdviceRequest

This interface represents a request for advice within the advisor subsystem. Its methods are similar to the HttpSession interface.

Method Summary

public Object
getAttribute(String name)
Returns the AdviceRequest attribute with a given name.
public Collection
getAttributeNames()
Returns a Collection with the names of all the attributes.
public long
getCreationTime()
Returns the creation time for this AdviceRequest.
public String
getId()
Returns the user assigned identifier for this AdviceRequest.
public String
getUri()
Returns the URI associated with this AdviceRequest.
public void
removeAttribute(String name)
Removes a named attribute from the AdviceRequest.
public void
setAttribute(String name, Object value)
Sets a named attribute to a value.
public void
setId(String id)
Set the identifier for this AdviceRequest.
public void
setUri(String uri)
Sets the URI associated with this AdviceRequest.

Method Detail

getAttribute(String) Method

public Object getAttribute(String name)
Returns the AdviceRequest attribute with a given name.

Parameters

name
the name of the attribute.

Returns

the AdviceRequest attribute with a given name.

getAttributeNames() Method

public Collection getAttributeNames()
Returns a Collection with the names of all the attributes.

Returns

a Collection with the names of all the attributes.

getCreationTime() Method

public long getCreationTime()
Returns the creation time for this AdviceRequest.

Returns

the creation time for this AdviceRequest.

getId() Method

public String getId()
Returns the user assigned identifier for this AdviceRequest.

Returns

the user assigned identifier for this AdviceRequest.

getUri() Method

public String getUri()
Returns the URI associated with this AdviceRequest.

Returns

the URI associated with this AdviceRequest.

removeAttribute(String) Method

public void removeAttribute(String name)
Removes a named attribute from the AdviceRequest.

Parameters

name
the name of the attribute.

setAttribute(String, Object) Method

public void setAttribute(String name, 
                         Object value)
Sets a named attribute to a value.

Parameters

name
the name of the attribute.
value
the value to be associated.

setId(String) Method

public void setId(String id)
Set the identifier for this AdviceRequest.

Parameters

id
the AdviceRequest identifier.

setUri(String) Method

public void setUri(String uri)
Sets the URI associated with this AdviceRequest.

Parameters

uri
the URI.