2010-01-26 1.2.0

org.eclipse.soda.dk.epcglobal.llrp.config.servlet
Class LLRPConfigConsole

java.lang.Object
  extended by DeviceServletBundle
      extended by org.eclipse.soda.dk.epcglobal.llrp.config.servlet.LLRPConfigConsole

public class LLRPConfigConsole
extends DeviceServletBundle

Since:
1.0
Version:
1.2.0

Constructor Summary
LLRPConfigConsole()
           
 
Method Summary
protected  void activate()
          Activate.
 void addReader(java.lang.String readerPrefix, java.lang.String readerId)
          Add reader with the specified reader prefix and reader id parameters.
 java.util.Map addReaderProfile(java.lang.String readerPrefix, java.lang.String profileName)
          Add reader profile with the specified reader prefix and profile name parameters and return the Map result.
 DeviceServlet createServlet()
          Create servlet and return the DeviceServlet result.
 java.lang.String getHtml(java.lang.String servletPath)
          Get html with the specified servlet path parameter and return the String result.
protected  java.lang.String[] getImportedServiceNames()
          Gets the imported service names (String[]) value.
 IServiceDetecter getLLRPAdapterServiceDetecter()
          Gets the llrpadapter service detecter (IServiceDetecter) value.
 IServiceDetecter getLLRPInventoryServiceDetecter()
          Gets the service detecter (IServiceDetecter) value.
 IServiceDetecter getLLRPWriteServiceDetecter()
          Gets the llrpwrite service detecter (IServiceDetecter) value.
 ServiceDetecterListener getServiceDetecterListener()
          Gets the service detecter listener value.
 void notificationReceived(java.lang.String externalKey, java.util.Dictionary data)
          Notification received with the specified external key and data parameters.
 void processReqeust(javax.servlet.http.HttpServletRequest request)
          Process reqeust with the specified request parameter.
protected  void requestConfig(java.lang.String prefix, java.lang.String getTopic, java.lang.String valueTopic)
          Request config with the specified prefix, get topic and value topic parameters.
protected  void requestConfigWithThread(java.lang.String prefix, java.lang.String getTopic, java.lang.String valueTopic, long sleep)
          Request config with thread with the specified prefix, get topic, value topic and sleep parameters.
 void sendLLRPConfiguration(java.lang.String profileName, java.lang.String prefix, java.lang.String configStr)
          Send inventory llrpconfiguration with the specified reader id and config str parameters.
protected  void sendRequest(java.lang.String topic, java.lang.Object request)
          Send request with the specified topic and request parameters.
 void setReaderCapabilities(java.lang.String readerPrefix, java.util.Map readerCapabilities)
          Set reader profile config str with the specified reader prefix, profile name and config str parameters.
 void setReaderProfileConfigStr(java.lang.String readerPrefix, java.lang.String profileName, java.lang.String configStr)
          Set reader profile config str with the specified reader prefix, profile name and config str parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LLRPConfigConsole

public LLRPConfigConsole()
Method Detail

activate

protected void activate()
Activate.


addReader

public void addReader(java.lang.String readerPrefix,
                      java.lang.String readerId)
Add reader with the specified reader prefix and reader id parameters.

Parameters:
readerPrefix - The reader prefix (String) parameter.
readerId - The reader ID (String) parameter.

addReaderProfile

public java.util.Map addReaderProfile(java.lang.String readerPrefix,
                                      java.lang.String profileName)
Add reader profile with the specified reader prefix and profile name parameters and return the Map result.

Parameters:
readerPrefix - The reader prefix (String) parameter.
profileName - The profile name (String) parameter.
Returns:
Results of the add reader profile (Map) value.

createServlet

public DeviceServlet createServlet()
Create servlet and return the DeviceServlet result.

Returns:
Results of the create servlet (DeviceServlet) value.

getHtml

public java.lang.String getHtml(java.lang.String servletPath)
Get html with the specified servlet path parameter and return the String result.

Parameters:
servletPath - The servlet path (String) parameter.
Returns:
Results of the get html (String) value.

getImportedServiceNames

protected java.lang.String[] getImportedServiceNames()
Gets the imported service names (String[]) value.

Returns:
The imported service names (String[]) value.

getLLRPAdapterServiceDetecter

public IServiceDetecter getLLRPAdapterServiceDetecter()
Gets the llrpadapter service detecter (IServiceDetecter) value.

Returns:
The llrpadapter service detecter (IServiceDetecter) value.

getLLRPInventoryServiceDetecter

public IServiceDetecter getLLRPInventoryServiceDetecter()
Gets the service detecter (IServiceDetecter) value.

Returns:
The service detecter (IServiceDetecter) value.

getLLRPWriteServiceDetecter

public IServiceDetecter getLLRPWriteServiceDetecter()
Gets the llrpwrite service detecter (IServiceDetecter) value.

Returns:
The llrpwrite service detecter (IServiceDetecter) value.

getServiceDetecterListener

public ServiceDetecterListener getServiceDetecterListener()
Gets the service detecter listener value.

Returns:
The service detecter listener (ServiceDetecterListener) value.

notificationReceived

public void notificationReceived(java.lang.String externalKey,
                                 java.util.Dictionary data)
Notification received with the specified external key and data parameters.

Parameters:
externalKey - The external key (String) parameter.
data - The data (Dictionary) parameter.

processReqeust

public void processReqeust(javax.servlet.http.HttpServletRequest request)
Process reqeust with the specified request parameter.

Parameters:
request - The request (HttpServletRequest) parameter.

requestConfig

protected void requestConfig(java.lang.String prefix,
                             java.lang.String getTopic,
                             java.lang.String valueTopic)
Request config with the specified prefix, get topic and value topic parameters.

Parameters:
prefix - The prefix (String) parameter.
getTopic - The get topic (String) parameter.
valueTopic - The value topic (String) parameter.

requestConfigWithThread

protected void requestConfigWithThread(java.lang.String prefix,
                                       java.lang.String getTopic,
                                       java.lang.String valueTopic,
                                       long sleep)
Request config with thread with the specified prefix, get topic, value topic and sleep parameters.

Parameters:
prefix - The prefix (String) parameter.
getTopic - The get topic (String) parameter.
valueTopic - The value topic (String) parameter.
sleep - The sleep (long) parameter.

sendLLRPConfiguration

public void sendLLRPConfiguration(java.lang.String profileName,
                                  java.lang.String prefix,
                                  java.lang.String configStr)
Send inventory llrpconfiguration with the specified reader id and config str parameters.

Parameters:
profileName - The profile name (String) parameter.
prefix - The prefix (String) parameter.
configStr - The configuration str (String) parameter.

sendRequest

protected void sendRequest(java.lang.String topic,
                           java.lang.Object request)
Send request with the specified topic and request parameters.

Parameters:
topic - The topic (String) parameter.
request - The request (Object) parameter.

setReaderCapabilities

public void setReaderCapabilities(java.lang.String readerPrefix,
                                  java.util.Map readerCapabilities)
Set reader profile config str with the specified reader prefix, profile name and config str parameters.

Parameters:
readerPrefix - The reader prefix (String) parameter.
readerCapabilities - The reader capabilities (Map) parameter.

setReaderProfileConfigStr

public void setReaderProfileConfigStr(java.lang.String readerPrefix,
                                      java.lang.String profileName,
                                      java.lang.String configStr)
Set reader profile config str with the specified reader prefix, profile name and config str parameters.

Parameters:
readerPrefix - The reader prefix (String) parameter.
profileName - The profile name (String) parameter.
configStr - The configuration str (String) parameter.

2010-01-26 1.2.0

Copyright (c) 2010 IBM. See license in Legal section.