|
1.0.0 | |||||||||
| 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
org.eclipse.soda.dk.device.servlet.DeviceServlet
public class DeviceServlet
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.soda.dk.device.servlet.service.DeviceServletService |
|---|
SERVICE_NAME |
| Constructor Summary | |
|---|---|
DeviceServlet()
Constructs an instance of this class. |
|
| Method Summary | |
|---|---|
void |
buildMenu(DeviceServletContext context)
Build menu with the specified context parameter. |
DeviceServletContext |
createContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Create context with the specified request and response parameters and return the DeviceServletContext result. |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Do get with the specified request and response parameters. |
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Do post with the specified request and response parameters. |
static java.lang.String |
escape(java.lang.String str)
XML-escape string and return result. |
static void |
escape(java.lang.StringBuffer s,
char c)
XML-escape single character and append result. |
org.osgi.service.metatype.AttributeDefinition |
findAttribute(java.lang.Object key,
org.osgi.service.metatype.AttributeDefinition[] attributeDefinitions)
Find attribute with the specified key and attribute definitions parameters and return the AttributeDefinition result. |
org.osgi.framework.BundleContext |
getBundleContext()
Gets the bundle context value. |
org.osgi.framework.Bundle[] |
getBundles()
Gets the bundles (Bundle[]) value. |
java.lang.String |
getResouceAliasDefault()
Gets the resouce alias default (String) value. |
java.lang.String |
getResoucePathDefault()
Gets the resouce path default (String) value. |
java.lang.String |
getResourceAlias()
Gets the resource alias (String) value. |
java.lang.String |
getResourcePath()
Gets the resource path (String) value. |
org.osgi.service.http.HttpService |
getServer()
Gets the server (HttpService) value. |
org.osgi.framework.ServiceReference[] |
getServiceReferences()
Gets the service references (ServiceReference[]) value. |
java.lang.String |
getServletAlias()
Gets the servlet alias (String) value. |
java.lang.String |
getServletAliasDefault()
Gets the servlet alias default (String) value. |
void |
processFileRequest(DeviceServletContext context)
Process file request with the specified context parameter. |
void |
processOverview(DeviceServletContext context)
Process overview with the specified context parameter. |
void |
processRequest(DeviceServletContext context)
Process request with the specified context parameter. |
void |
setBundleContext(org.osgi.framework.BundleContext bundleContext)
Sets the bundle context value. |
void |
setResourceAlias(java.lang.String resourceAlias)
Sets the resource alias value. |
void |
setResourcePath(java.lang.String resourcePath)
Sets the resource path value. |
void |
setServer(org.osgi.service.http.HttpService server)
Sets the server value. |
void |
setServletAlias(java.lang.String servletAlias)
Sets the servlet alias value. |
void |
setup(DeviceServletContext context)
Sets the up value. |
| 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, getServletInfo, getServletName, init, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.servlet.Servlet |
|---|
destroy, getServletConfig, getServletInfo, init, service |
| Constructor Detail |
|---|
public DeviceServlet()
| Method Detail |
|---|
public static java.lang.String escape(java.lang.String str)
str - String to return in XML-escaped form.
String) value.escape(StringBuffer,char)
public static void escape(java.lang.StringBuffer s,
char c)
s - StringBuffer to append result to.c - Character to append in escaped form, if required.escape(String)public void buildMenu(DeviceServletContext context)
context - The context (DeviceServletContext) parameter.
public DeviceServletContext createContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
request - The request (HttpServletRequest) parameter.response - The response (HttpServletResponse) parameter.
DeviceServletContext) value.getBundleContext(),
setBundleContext(BundleContext)
public 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.HttpServletrequest - The request (HttpServletRequest) parameter.response - The response (HttpServletResponse) parameter.
javax.servlet.ServletException - Servlet Exception.
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.HttpServletrequest - The request (HttpServletRequest) parameter.response - The response (HttpServletResponse) parameter.
javax.servlet.ServletException - Servlet Exception.
java.io.IOException
public org.osgi.service.metatype.AttributeDefinition findAttribute(java.lang.Object key,
org.osgi.service.metatype.AttributeDefinition[] attributeDefinitions)
key - The key (Object) parameter.attributeDefinitions - The attribute definitions (AttributeDefinition[]) parameter.
AttributeDefinition) value.public org.osgi.framework.BundleContext getBundleContext()
BundleContext) value.setBundleContext(BundleContext)public org.osgi.framework.Bundle[] getBundles()
Bundle[]) value.public java.lang.String getResouceAliasDefault()
String) value.public java.lang.String getResoucePathDefault()
String) value.public java.lang.String getResourceAlias()
String) value.setResourceAlias(String)public java.lang.String getResourcePath()
String) value.setResourcePath(String)public org.osgi.service.http.HttpService getServer()
HttpService) value.setServer(HttpService)public org.osgi.framework.ServiceReference[] getServiceReferences()
ServiceReference[]) value.public java.lang.String getServletAlias()
getServletAlias in interface DeviceServletServiceString) value.setServletAlias(String)public java.lang.String getServletAliasDefault()
String) value.public void processFileRequest(DeviceServletContext context)
context - The context (DeviceServletContext) parameter.public void processOverview(DeviceServletContext context)
context - The context (DeviceServletContext) parameter.public void processRequest(DeviceServletContext context)
context - The context (DeviceServletContext) parameter.processFileRequest(DeviceServletContext)public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
bundleContext - The bundle context (BundleContext) parameter.getBundleContext()public void setResourceAlias(java.lang.String resourceAlias)
resourceAlias - The resource alias (String) parameter.getResourceAlias()public void setResourcePath(java.lang.String resourcePath)
resourcePath - The resource path (String) parameter.getResourcePath()public void setServer(org.osgi.service.http.HttpService server)
server - The server (HttpService) parameter.getServer()public void setServletAlias(java.lang.String servletAlias)
servletAlias - The servlet alias (String) parameter.getServletAlias()public void setup(DeviceServletContext context)
context - The context (DeviceServletContext) parameter.
|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||