© 2005 BEA Systems, Inc.

com.bea.p13n.advisor
Interface AdviceRequest


public interface AdviceRequest

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


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

Method Detail

getAttribute

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

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

Returns:
a Collection with the names of all the attributes.

getCreationTime

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

Returns:
the creation time for this AdviceRequest.

getId

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

Returns:
the user assigned identifier for this AdviceRequest.

getUri

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

Returns:
the URI associated with this AdviceRequest.

removeAttribute

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

Parameters:
name - the name of the attribute.

setAttribute

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

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

Parameters:
id - the AdviceRequest identifier.

setUri

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

Parameters:
uri - the URI.

© 2005 BEA Systems, Inc.

Copyright © 2005 BEA Systems, Inc. All Rights Reserved