|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectome.services.blitz.gateway.services.util.ServiceUtilities
public class ServiceUtilities
Constructor Summary | |
---|---|
ServiceUtilities()
|
Method Summary | ||
---|---|---|
static String |
cause(Throwable t)
|
|
static
|
collectionCast(Class<T> klass,
List<omero.model.IObject> list)
Helper method for the conversion of base types in containers(normally of type IObject) to a concrete type. |
|
static String |
convertPojos(omero.api.ContainerClass nodeType)
Converts the specified POJO into the corresponding model. |
|
static void |
handleException(Throwable t,
String message)
Helper method to handle exceptions thrown by the connection library. |
|
static String |
printErrorText(Throwable e)
Utility method to print the error message |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceUtilities()
Method Detail |
---|
public static <T extends omero.model.IObject> List<T> collectionCast(Class<T> klass, List<omero.model.IObject> list)
T
- new type.klass
- new type class.list
- container.
public static String convertPojos(omero.api.ContainerClass nodeType)
nodeType
- The POJO class.
public static void handleException(Throwable t, String message) throws omero.ServerError
t
- The exception.message
- The context message.
DSOutOfServiceException
- A connection problem.
DSAccessException
- A server-side error.
omero.ServerError
public static String cause(Throwable t)
public static String printErrorText(Throwable e)
e
- The exception to handle.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: Beta-4.1.1-r5927-b91
Copyright © 2009 The University of Dundee. All Rights Reserved.