public class ServiceHub extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
dropService(Service service) |
String |
format(double number) |
static ServiceHub |
getInstance(javax.servlet.ServletContext context) |
com.google.gson.Gson |
getJsonSerializer() |
Service |
getService(String serviceName) |
Set<String> |
getServiceNames() |
org.simpleframework.xml.core.Persister |
getXmlSerializer() |
Client |
identifyClient(javax.servlet.http.HttpServletRequest request) |
void |
registerService(Service service) |
public static ServiceHub getInstance(javax.servlet.ServletContext context) throws javax.servlet.ServletException
javax.servlet.ServletExceptionpublic void registerService(Service service)
public void dropService(Service service)
public org.simpleframework.xml.core.Persister getXmlSerializer()
public com.google.gson.Gson getJsonSerializer()
public String format(double number)
public Client identifyClient(javax.servlet.http.HttpServletRequest request)
Copyright © 2012 David Milne. All Rights Reserved.