Package ietf.params.xml.ns.sppp.base._1

Examples of ietf.params.xml.ns.sppp.base._1.ObjectFactory


     * @throws javax.xml.stream.XMLStreamException
     */
    public XMLStreamReader readHeader() throws XMLStreamException {
        XMLStreamBufferResult xbr = new XMLStreamBufferResult();
        JAXBElement<BinarySecurityTokenType> bstElem =
                new ObjectFactory().createBinarySecurityToken(bst);
        try{
            getMarshaller().marshal(bstElem, xbr);
        }catch(JAXBException je){
            //log here
            throw new XMLStreamException(je);
View Full Code Here


     * @param streamWriter XMLStreamWriter
     * @throws javax.xml.stream.XMLStreamException
     */
    public void writeTo(XMLStreamWriter streamWriter) throws XMLStreamException {
        JAXBElement<BinarySecurityTokenType> bstElem =
                new ObjectFactory().createBinarySecurityToken(bst);
        try {
            // If writing to Zephyr, get output stream and use JAXB UTF-8 writer
            if (streamWriter instanceof Map) {
                OutputStream os = (OutputStream) ((Map) streamWriter).get("sjsxp-outputstream");
                if (os != null) {
View Full Code Here

  }

  @Override
  public String getName() {
    String result = null;
    MetadataType md = gpx.getMetadata();
    if( null != md ) {
      result = md.getName();
    }
    return result;
  }
View Full Code Here

  }

  @Override
  public String getDescription() {
    String result = null;
    MetadataType md = gpx.getMetadata();
    if( null != md ) {
      result = md.getDesc();
    }
    return result;
  }
View Full Code Here

  static public  void processSpppQueryCommand(SpppQueryRequest rqst, ApplicationContext appContext, SpppQueryResponse response){
    // could be singleton
    SoapCommandFactory factory = new SoapCommandFactory();
    factory.setAppContext(appContext);
   
    BasicQueryRqstType queryRqst = rqst.getRqst();
   
    SpppCommand command = factory.getQueryCommand(queryRqst);
     
    ResultSetResult res = (ResultSetResult) command.execute();
View Full Code Here

  public void dtoToResultSet(List<BasicObjType> dstGrpTypeList) {
    // TODO Auto-generated method stub
  if(dtoList != null && dtoList.size() > 0 ){
   
    for(DestinationGroup dg : dtoList){
      DestGrpType dgType = new DestGrpType();
      if(dg.getOrganizationName() != null)
        dgType.setRant(dg.getOrganizationName());
      if(dg.getDestGrpName() != null)
        dgType.setDgName(dg.getDestGrpName());
      if(dg.getCreatedDateTime()!= null){
        Date cDate = dg.getCreatedDateTime();
        dgType.setCDate(asXMLGregorianCalendar(cDate));
      }
      if(dg.getModifiedDateTime() != null){
        Date mDate = dg.getModifiedDateTime();
        dgType.setMDate(asXMLGregorianCalendar(mDate));
      }
      dstGrpTypeList.add(dgType);
    }
     
    return;
View Full Code Here

public class DelDestGrpMediator extends CommandMediator<DelDestGrpRqstType, DestinationGroup> {
 
  public void convertOriginalToDTO() {
    DestinationGroup destGrp = new DestinationGroup();
    ObjKeyType objKey = originalDataObject.getObjKey();

   
    destGrp.setOrganizationName(objKey.getRant());   
    destGrp.setDestGrpName(objKey.getName());
   
    command.setDto(destGrp);
  }
View Full Code Here

    List<BasicUpdateRqstType> rqstList = rqst.getRqst();
   
    // set up response
    List<RqstObjResultCodeType> rqstObjResultCodeList = response.getRqstObjResult();
    // set default to success
    ResultCodeType resultCode = new ResultCodeType();
    resultCode.setCode(CommandResultCodes.REQUESTSUCCEEDED.getResultCode());
    resultCode.setMsg(succeededOverallMsgStr);
   
    response.setOverallResult(resultCode);
 
    // process the list of requests
   
View Full Code Here

   
    SpppCommand command = factory.getQueryCommand(queryRqst);
     
    ResultSetResult res = (ResultSetResult) command.execute();

    ResultCodeType resultCode = new ResultCodeType();
 
    resultCode.setCode(res.getResultCode());
    resultCode.setMsg(res.getStrMessage());

   
    // use mediator
    //
    ResultMediator resMediator = factory.getResultMediator(queryRqst);
View Full Code Here

     
      OverallResult res = command.execute();
     
      // response has a list List<RqstObjResultCodeType>
      // construct RqstObjResultCodeType and add the result
      RqstObjResultCodeType reqObjResultCode = new RqstObjResultCodeType();
      reqObjResultCode.setCode(res.getResultCode());
      reqObjResultCode.setMsg(res.getStrMessage());
      reqObjResultCode.setRqstObj(updateRqst);
         

      rqstObjResultCodeList.add(reqObjResultCode);
     
      // if the command did not succeed
View Full Code Here

TOP

Related Classes of ietf.params.xml.ns.sppp.base._1.ObjectFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.