|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.droidlar.Servidor
public class Servidor
Classe responsável pela recepção e gerenciamento das mesagens HTTP enviadas pela aplicação cliente do DriodLar.
Field Summary | |
---|---|
static int |
MSG_AUTENTICACAO
|
static int |
MSG_CONTROLE
|
static java.lang.String |
MSG_ERRO
|
static int |
MSG_PERFIL
|
static int |
MSG_SET_NOME
|
static java.lang.String |
MSG_SUCESSO
|
static int |
MSG_VARREDURA
|
static int |
REQUEST_DISP
|
static int |
REQUEST_PERFIL
|
static int |
REQUEST_PERFIL_UUID
|
static int |
REQUEST_POR_TIPO
|
static int |
SET_VARREDURA
|
Constructor Summary | |
---|---|
Servidor()
|
Method Summary | |
---|---|
com.rapplogic.xbee.api.XBeeAddress64 |
convertStringToX64(java.lang.String end)
Converte um endereço de um módulo xBee no formato String para o formato XBeeAddress64. |
java.lang.String |
convertX64ToString(com.rapplogic.xbee.api.XBeeAddress64 end)
Converte um endereço de um módulo xBee no formato XBeeAddress64 para o formato String. |
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles the HTTP GET method. |
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles the HTTP POST method. |
GererenciadorDosModulos |
getGerModulos()
|
java.lang.String |
getServletInfo()
Returns a short description of the servlet. |
void |
gravarObjeto(java.lang.Object objeto,
java.lang.String fileName)
Grava objetos em arquivos. |
protected void |
processRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Processes requests for both HTTP GET and POST methods. |
java.lang.Object |
recuperarObjeto(java.lang.String fileName)
Restaura objetos gravados em arquivos. |
Methods inherited from class javax.servlet.http.HttpServlet |
---|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String MSG_SUCESSO
public static final java.lang.String MSG_ERRO
public static final int MSG_AUTENTICACAO
public static final int MSG_CONTROLE
public static final int REQUEST_DISP
public static final int MSG_VARREDURA
public static final int MSG_PERFIL
public static final int REQUEST_POR_TIPO
public static final int MSG_SET_NOME
public static final int REQUEST_PERFIL_UUID
public static final int REQUEST_PERFIL
public static final int SET_VARREDURA
Constructor Detail |
---|
public Servidor()
Method Detail |
---|
protected void processRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
GET
and POST
methods.
request
- servlet requestresponse
- servlet response
javax.servlet.ServletException
- if a servlet-specific error occurs
java.io.IOException
- if an I/O error occurspublic java.lang.Object recuperarObjeto(java.lang.String fileName)
fileName
- nome do arquivo contendo o objeto
public void gravarObjeto(java.lang.Object objeto, java.lang.String fileName)
objeto
- objeto que será gravadofileName
- nome do arquivo onde o objeto será gravadopublic GererenciadorDosModulos getGerModulos()
public com.rapplogic.xbee.api.XBeeAddress64 convertStringToX64(java.lang.String end)
end
- endereco no formato String
public java.lang.String convertX64ToString(com.rapplogic.xbee.api.XBeeAddress64 end)
end
- endereco no formato XBeeAddress64
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
GET
method.
doGet
in class javax.servlet.http.HttpServlet
request
- servlet requestresponse
- servlet response
javax.servlet.ServletException
- if a servlet-specific error occurs
java.io.IOException
- if an I/O error occursprotected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
POST
method.
doPost
in class javax.servlet.http.HttpServlet
request
- servlet requestresponse
- servlet response
javax.servlet.ServletException
- if a servlet-specific error occurs
java.io.IOException
- if an I/O error occurspublic java.lang.String getServletInfo()
getServletInfo
in interface javax.servlet.Servlet
getServletInfo
in class javax.servlet.GenericServlet
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |