コード例 #1
0
 @Override
 public com.sun.research.ws.wadl.Method createMethod(
     org.glassfish.jersey.server.model.Resource r, final ResourceMethod m) {
   com.sun.research.ws.wadl.Method wadlMethod = new com.sun.research.ws.wadl.Method();
   wadlMethod.setName(m.getHttpMethod());
   // TODO - J2
   wadlMethod.setId(m.getHttpMethod() + m.getPath());
   return wadlMethod;
 }
コード例 #2
0
 @Override
 public com.sun.research.ws.wadl.Method createMethod(
     org.glassfish.jersey.server.model.Resource r, final ResourceMethod m) {
   com.sun.research.ws.wadl.Method wadlMethod = new com.sun.research.ws.wadl.Method();
   wadlMethod.setName(m.getHttpMethod());
   wadlMethod.setId(m.getInvocable().getDefinitionMethod().getName());
   if (m.isExtended()) {
     wadlMethod.getAny().add(WadlApplicationContextImpl.extendedElement);
   }
   return wadlMethod;
 }