[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Handle-info] resovleHandle method query
Hi,
Just a question on the handle API. If I use the following Resolver class
resolveHandle method:
public HandleValue[] resolveHandle(String handle, String typeList[],
boolean secure)
and the handle does not contain any values of the type(s) in typeList, a
HandleException with an error of HANDLE_DOES_NOT_EXIST is thrown. The
hdl6.2.5_02 API docs state "The requested handle values are then
extracted from the response and returned (or an exception is thrown if
there was an error). " When a value with a type in typeList is present
it behaves as I would expect.
Is this a bug or the expected behaviour? I was hoping for a null or
empty array to be returned if the handle actually existed. It's no
biggie since I can use one of the other methods and post-filter but if
it's not me doing something dumb it might be good to either log as a bug
for a future release or provide clarification in the API docs.
Thanks.
Scott.
_______________________________________________
Handle-Info mailing list
Handle-Info@cnri.reston.va.us
http://www.handle.net/mailman/listinfo/handle-info