Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.openyelp.servlet;
 
 import java.util.Map;
 import java.util.Set;
 
public abstract class RpcServlet extends HttpServlet {
	private final JsonRpcExecutor executor;
	public RpcServlet() {
	}
	private JsonRpcExecutor bind() {
		JsonRpcExecutor executor = new JsonRpcExecutor(
		Set<Stringsets = ms.keySet();
		for (String key : sets) {
			Object o = ms.get(key);
			Class[] classs = o.getClass().getInterfaces();
			for (Class class1 : classs) {
				Annotation xx =	class1.getAnnotation(RestFul.class);
				if(xx instanceof RestFul){
					RestFul xxx = (RestFulxx;
					String apiname = xxx.value();
					executor.addHandler(apinameoxxx.api());
				}
			}
		}
		return executor;
	}

	protected void doGet(HttpServletRequest request,
		.execute(new JsonRpcServletTransport(requestresponse));
	}

	protected void doPost(HttpServletRequest request,
		.execute(new JsonRpcServletTransport(requestresponse));
	}
New to GrepCode? Check out our FAQ X