com.ibm.portal.resolver.data
Interface StatusCodeDataSource
- All Superinterfaces:
- Addressable, DataSource, DataSourceFragment, Disposable, TimeStamped
- All Known Implementing Classes:
- AbstractDataSource
-
public interface StatusCodeDataSource
- extends DataSource
Optional interface implemented by a DataSource to specify a suggested
status code.
- Since:
- 6.1.0.1
- Note:
This interface is designed to be implemented by clients. |
Field Summary
|
static int |
SC_UNDEFINED
Special status code that indicates that the data source does not want to
specify the status code but relies on the default computation. |
Method Summary
|
int |
getStatus()
Return a suggested HTTP status code. |
SC_UNDEFINED
static final int SC_UNDEFINED
- Special status code that indicates that the data source does not want to
specify the status code but relies on the default computation.
- Since:
- 6.1.0.2
- See Also:
- Constant Field Values
getStatus
int getStatus()
- Returns a suggested HTTP status code. It is up to the framework to decide
if this suggested status code is respected.
- Returns:
- a status code, may return SC_UNDEFINED to indicate that
the status code should not be overridden