public class RegistrationServlet extends RegistryBasedServlet
RegistrationRequest
sent to
http://hub:port/grid/register will be used to create a RemoteProxy and add it to the grid.Modifier and Type | Field and Description |
---|---|
private static java.util.logging.Logger |
log |
private static long |
serialVersionUID |
Constructor and Description |
---|
RegistrationServlet() |
RegistrationServlet(Registry registry) |
Modifier and Type | Method and Description |
---|---|
private void |
considerV2Json(GridNodeConfiguration configuration,
com.google.gson.JsonObject json)
Deprecated.
because V3 does not have separate "capabilities": { } object and "id": "value"
in the serialized json representation of the RegistrationRequest. That said V2 nodes do need
to be able to register with a V3 hub.
|
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
private boolean |
isV2RegistrationRequestJson(com.google.gson.JsonObject json)
Deprecated.
because V3 does not have separate "capabilities": { } object in the serialized json
representation of the RegistrationRequest. That said V2 nodes do need to be able to register
with a V3 hub.
|
private GridNodeConfiguration |
mapV2Configuration(com.google.gson.JsonObject json)
Deprecated.
because V3 node configuration data structure is internally different than V2.
That said V2 nodes do need to be able to register with a V3 hub.
|
protected void |
process(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
reply(javax.servlet.http.HttpServletResponse response,
java.lang.String content) |
getRegistry
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
private static final long serialVersionUID
private static final java.util.logging.Logger log
public RegistrationServlet()
public RegistrationServlet(Registry registry)
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
protected void process(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
java.io.IOException
@Deprecated private GridNodeConfiguration mapV2Configuration(com.google.gson.JsonObject json)
@Deprecated private boolean isV2RegistrationRequestJson(com.google.gson.JsonObject json)
@Deprecated private void considerV2Json(GridNodeConfiguration configuration, com.google.gson.JsonObject json)
protected void reply(javax.servlet.http.HttpServletResponse response, java.lang.String content) throws java.io.IOException
java.io.IOException