congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
WsrfbfException
Code IndexAdd Tabnine to your IDE (free)

How to use
WsrfbfException
in
com.ebmwebsourcing.wsstar.basefaults.datatypes.api.utils

Best Java code snippets using com.ebmwebsourcing.wsstar.basefaults.datatypes.api.utils.WsrfbfException (Showing top 6 results out of 315)

origin: org.ow2.petals.wsstar.oasis-ws-basefaults/wsrf-bf-datatypes-api

public static WsrfbfFactory getInstance() throws WsrfbfException {
  RefinedWsrfbfFactory singleton = WsrfbfFactoryHolder.INSTANCE;
  if (singleton.model == null){ 			
    throw new WsrfbfException("\n\t/!\\ WARNING /!\\\n" +
        "The WsrfbfModelFactory have not been initialized !!!\n" +
        "Please create a \"WsrfbfModelFactory\" instance and \n" +
        "call the \"getInstance(WsrfbfModelFactory)\" method instead." +
        "\n\t/!\\ WARNING /!\\\n");
  }
  return singleton;		
}    

origin: com.ebmwebsourcing.wsstar/wsrf-bf-services

public AbsWSStarFault() throws WsrfbfException {	
  super();
  try {
    this.wsnFault = RefinedWsrfbfFactory.getInstance().createBaseFaultType(new Date());
  }catch (WsrfbfException e) {
    throw new WsrfbfException(e);
  }
}

origin: com.ebmwebsourcing.wsstar/wsrf-bf-datatypes-jaxbimpl

@Override
public final BaseFaultType readBaseFaultType(Document document) throws WsrfbfException {
  BaseFaultType result = null;
  
  try {
    Unmarshaller unmarshaller = this.resourceJaxbContext.createWSBaseFaultsUnmarshaller();
    // TODO : Check if it is a Thread safe method
    JAXBElement<com.ebmwebsourcing.wsstar.jaxb.resource.basefaults.BaseFaultType> schemaBinding = 
      unmarshaller.unmarshal(new DOMSource(document),com.ebmwebsourcing.wsstar.jaxb.resource.basefaults.BaseFaultType.class);
    if (schemaBinding.getValue() != null){
      result = new BaseFaultTypeImpl(schemaBinding.getValue(),null);
    }
  } catch (JAXBException e) {
    throw new WsrfbfException(e);
  }     
  return result;
}
origin: com.ebmwebsourcing.wsstar/wsrf-bf-services

public AbsWSStarFault(Document faultAsDocument) throws WsrfbfException {
  super();
  try {
    this.wsnFault = RefinedWsrfbfFactory.getInstance().getWsrfbfReader().readBaseFaultType(faultAsDocument);
    this.init();	
  } catch (WsrfbfException e) {
    throw new WsrfbfException(e);
  }        
}

origin: com.ebmwebsourcing.wsstar/wsrf-bf-datatypes-jaxbimpl

  @Override
  public final Document writeBaseFaultTypeAsDOM(BaseFaultType fault)
  throws WsrfbfException {
    Document result = null;
    if (fault instanceof BaseFaultTypeImpl){
      try {

        Marshaller marshaller = this.resourceJaxbContext.createWSBaseFaultsMarshaller();

//                result = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();
        result = WsstarCommonUtils.getNamespaceDocumentBuilder().newDocument();
        // TODO : Check if it is a Thread safe method
        final JAXBElement<com.ebmwebsourcing.wsstar.jaxb.resource.basefaults.BaseFaultType> element =
          WsrfbfJAXBContext.WSRFBF_JAXB_FACTORY.createBaseFault(BaseFaultTypeImpl.toJaxbModel(fault, null));
//                    new JAXBElement<com.ebmwebsourcing.wsstar.jaxb.resource.basefaults.BaseFaultType>(WsrfbfConstants.BASE_FAULT_QNAME,
//                            com.ebmwebsourcing.wsstar.jaxb.resource.basefaults.BaseFaultType.class,
//                            ((BaseFaultTypeImpl)fault).getJaxbTypeObj());

        marshaller.marshal(element, result);            

      } catch (final JAXBException ex) {
        throw new WsrfbfException(WsrfbfUtils.getBindingExMessage(fault), ex);
//            } catch (final ParserConfigurationException ex) {
//                throw new WsrfException(
//                        "Failed to build XML binding from "+ fault.getClass().getSimpleName() + " Api Java classes", ex);
      } 
    }
    return result;	
  }

origin: com.ebmwebsourcing.wsstar/wsrf-bf-services

protected final void init(Locale lang, String descContent) throws WsrfbfException {
    
  Description description;
  try {
    description = RefinedWsrfbfFactory.getInstance().createBaseFaultTypeDescription(null);            
  } catch (WsrfbfException e) {
    throw new WsrfbfException(e);
  }
  description.setLang(lang);
  description.setValue(descContent);
  if (this.wsnFault.getTimestamp() == null) {
    this.init();
  }
}
  
com.ebmwebsourcing.wsstar.basefaults.datatypes.api.utilsWsrfbfException

Most used methods

  • <init>

Popular in Java

  • Making http post requests using okhttp
  • setRequestProperty (URLConnection)
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • JTable (javax.swing)
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now