Esri Geoportal Server
1.0

com.esri.gpt.framework.request
Class RequestDefinition<CT extends Criteria,RT extends Result>

java.lang.Object
  extended by com.esri.gpt.framework.request.RequestDefinition<CT,RT>
Direct Known Subclasses:
SearchRequestDefinition

public class RequestDefinition<CT extends Criteria,RT extends Result>
extends Object

Defines the criteria for and the result of a request.


generic: CT represents the criteria type
generic: RT represents the result type


Constructor Summary
RequestDefinition()
          Default constructor.
RequestDefinition(CT criteria, RT result)
          Constructs with a supplied criteria and result.
 
Method Summary
 CT getCriteria()
          Gets the criteria for the request.
 RT getResult()
          Gets the result of the request.
 void setCriteria(CT criteria)
          Sets the criteria for the request.
 void setResult(RT result)
          Sets the result of the request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestDefinition

public RequestDefinition()
Default constructor.


RequestDefinition

public RequestDefinition(CT criteria,
                         RT result)
Constructs with a supplied criteria and result.

Parameters:
criteria - the request criteria
result - the request result
Method Detail

getCriteria

public CT getCriteria()
Gets the criteria for the request.

Returns:
the request criteria (possibly null)

setCriteria

public void setCriteria(CT criteria)
Sets the criteria for the request.

Parameters:
criteria - the request criteria

getResult

public RT getResult()
Gets the result of the request.

Returns:
the request result (possibly null)

setResult

public void setResult(RT result)
Sets the result of the request.

Parameters:
result - the request result

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.