Package org.jboss.ws.extensions.xop.jaxws

Examples of org.jboss.ws.extensions.xop.jaxws.AttachmentScanResult


    * @param i
    * @param wrappedParameter
    */
   private void processAttachmentAnnotationsWrapped(List<AttachmentScanResult> scanResult, int i, WrappedParameter wrappedParameter)
   {
      AttachmentScanResult asr = ReflectiveAttachmentRefScanner.getResultByIndex(scanResult, i);
      if (asr != null)
      {
         if (AttachmentScanResult.Type.SWA_REF == asr.getType())
            wrappedParameter.setSwaRef(true);
         else wrappedParameter.setXOP(true);
      }
   }
View Full Code Here


    * @param i
    * @param parameter
    */
   private void processAttachmentAnnotations(List<AttachmentScanResult> scanResult, int i, ParameterMetaData parameter)
   {
      AttachmentScanResult asr = ReflectiveAttachmentRefScanner.getResultByIndex(scanResult, i);
      if (asr != null)
      {
         if (AttachmentScanResult.Type.SWA_REF == asr.getType())
            parameter.setSwaRef(true);
         else parameter.setXOP(true);
      }
   }
View Full Code Here

      SCANNER.reset();
   }

   public void testFieldAnnotation() throws Exception
   {
      AttachmentScanResult mimeType = SCANNER.scanBean(FieldAnnotation.class);
      assertNotNull("Unable to find xop declaration", mimeType);
      assertEquals("text/xml", mimeType.getMimeType());
   }
View Full Code Here

      assertEquals("text/xml", mimeType.getMimeType());
   }

   public void testMethodAnnotation() throws Exception
   {
      AttachmentScanResult  mimeType = SCANNER.scanBean(MethodAnnotation.class);
      assertNotNull("Unable to find xop declaration", mimeType);
   }
View Full Code Here

      assertNotNull("Unable to find xop declaration", mimeType);
   }

   public void testAnnotationMissing() throws Exception
   {
      AttachmentScanResult  mimeType = SCANNER.scanBean(NoAnnotation.class);
      assertNull("There should be no mimeType available", mimeType);
   }
View Full Code Here

      Method m = AnnotatedSEI.class.getMethod("foo", new Class[] {byte[].class});
      assertNotNull(m);

      System.out.println(m.getParameterAnnotations().length);

      AttachmentScanResult  mimeType = SCANNER.scanBean( m.getParameterTypes()[0]);
      assertNotNull("Unable to find xop declaration", mimeType);
      assertEquals("text/xml", mimeType.getMimeType());
   }
View Full Code Here

      assertEquals("text/xml", mimeType.getMimeType());
   }

   public void testSimpleRecursion() throws Exception
   {
      AttachmentScanResult  mimeType = SCANNER.scanBean(SimpleRecursion.class);
      assertNull(mimeType);
   }
View Full Code Here

      assertNull(mimeType);
   }

   public void testComplexRecursion() throws Exception
   {
      AttachmentScanResult  mimeType = SCANNER.scanBean(ComplexRecursion.class);
      assertNotNull("Unable to find xop declaration", mimeType);
      assertEquals("text/plain", mimeType.getMimeType());
   }
View Full Code Here

    * @param i
    * @param wrappedParameter
    */
   private void processAttachmentAnnotationsWrapped(List<AttachmentScanResult> scanResult, int i, WrappedParameter wrappedParameter)
   {
      AttachmentScanResult asr = ReflectiveAttachmentRefScanner.getResultByIndex(scanResult, i);
      if (asr != null)
      {
         if (AttachmentScanResult.Type.SWA_REF == asr.getType())
            wrappedParameter.setSwaRef(true);
         else wrappedParameter.setXOP(true);
      }
   }
View Full Code Here

    * @param i
    * @param parameter
    */
   private void processAttachmentAnnotations(List<AttachmentScanResult> scanResult, int i, ParameterMetaData parameter)
   {
      AttachmentScanResult asr = ReflectiveAttachmentRefScanner.getResultByIndex(scanResult, i);
      if (asr != null)
      {
         if (AttachmentScanResult.Type.SWA_REF == asr.getType())
            parameter.setSwaRef(true);
         else parameter.setXOP(true);
      }
   }
View Full Code Here

TOP

Related Classes of org.jboss.ws.extensions.xop.jaxws.AttachmentScanResult

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.