예제 #1
0
  /* (non-Javadoc)
   * @see org.fosstrak.ale.wsdl.ale.epcglobal.ALEServicePortType#getECSpecNames(org.fosstrak.ale.wsdl.ale.epcglobal.EmptyParms  parms )*
   */
  public org.fosstrak.ale.wsdl.ale.epcglobal.ArrayOfString getECSpecNames(EmptyParms parms)
      throws ImplementationExceptionResponse, SecurityExceptionResponse {
    log.debug("getECSpecNames");
    ArrayOfString aof = new ArrayOfString();

    for (String sub : ale.getECSpecNames()) {
      aof.getString().add(sub);
    }
    return aof;
  }
 /* (non-Javadoc)
  * @see org.fosstrak.ale.wsdl.alelr.epcglobal.ALELRServicePortType#getLogicalReaderNames(org.fosstrak.ale.wsdl.alelr.epcglobal.EmptyParms  parms )*
  */
 public org.fosstrak.ale.wsdl.alelr.epcglobal.ArrayOfString getLogicalReaderNames(EmptyParms parms)
     throws ImplementationExceptionResponse, SecurityExceptionResponse {
   LOG.debug("getLogicalReaderNames");
   ArrayOfString aof = new ArrayOfString();
   try {
     aof.getString().addAll(logicalReaderManager.getLogicalReaderNames());
   } catch (org.fosstrak.ale.exception.SecurityException e) {
     throw new SecurityExceptionResponse(e.getMessage(), e);
   } catch (org.fosstrak.ale.exception.ImplementationException e) {
     throw new ImplementationExceptionResponse(e.getMessage(), e);
   }
   return aof;
 }
예제 #3
0
  /* (non-Javadoc)
   * @see org.fosstrak.ale.wsdl.ale.epcglobal.ALEServicePortType#getSubscribers(org.fosstrak.ale.wsdl.ale.epcglobal.GetSubscribers  parms )*
   */
  public org.fosstrak.ale.wsdl.ale.epcglobal.ArrayOfString getSubscribers(GetSubscribers parms)
      throws ImplementationExceptionResponse, SecurityExceptionResponse,
          NoSuchNameExceptionResponse {
    log.debug("getSubscribers");
    ArrayOfString aof = new ArrayOfString();

    try {
      for (String sub : ale.getSubscribers(parms.getSpecName())) {
        aof.getString().add(sub);
      }
    } catch (org.fosstrak.ale.exception.NoSuchNameException e) {
      throw new NoSuchNameExceptionResponse(e.getMessage(), e);
    }
    return aof;
  }
 public String[] getWarningMessages() {
   return (warningMessages != null) ? warningMessages.getString().toArray(new String[0]) : null;
 }