/** Logs a message. * @param pMessage The being logged. */ public void log(String pMessage) { server.getErrorLogger().log(pMessage); }
/** Adds handlers for the given object to the mapping. * The handlers are build by invoking * {@link #registerPublicMethods(String, Class)}. * @param pKey The class key, which is passed * to {@link #registerPublicMethods(String, Class)}. * @param pClass Class, which is responsible for handling the request. */ public void addHandler(String pKey, Class pClass) throws XmlRpcException { registerPublicMethods(pKey, pClass); }
public RequestProcessorFactory getRequestProcessorFactory(Class pClass) throws XmlRpcException { final Object processor = getRequestProcessor(pClass); return new RequestProcessorFactory(){ public Object getRequestProcessor(XmlRpcRequest pRequest) throws XmlRpcException { return processor; } }; } }
public String getMethodHelp(String pHandlerName) throws XmlRpcException { XmlRpcHandler h = getHandler(pHandlerName); if (h instanceof XmlRpcMetaDataHandler) return ((XmlRpcMetaDataHandler)h).getMethodHelp(); throw new XmlRpcNoSuchHandlerException("No help available for method: " + pHandlerName); }
public Object execute(XmlRpcRequest pRequest) throws XmlRpcException { XmlRpcServer server = (XmlRpcServer) getController(); XmlRpcHandlerMapping mapping = server.getHandlerMapping(); XmlRpcHandler handler = mapping.getHandler(pRequest.getMethodName()); return handler.execute(pRequest); } }
protected OutputStream getOutputStream(ServerStreamConnection pConnection, XmlRpcStreamRequestConfig pConfig, OutputStream pStream) throws IOException { if (pConfig.isEnabledForExtensions() && pConfig.isGzipRequesting()) { setResponseHeader(pConnection, "Content-Encoding", "gzip"); } return super.getOutputStream(pConnection, pConfig, pStream); } }
private Object getInstance( XmlRpcRequest pRequest ) throws XmlRpcException { return requestProcessorFactory.getRequestProcessor( pRequest ); }
@Override protected Object getRequestProcessor(Class class1, XmlRpcRequest request) throws XmlRpcException { return super.getRequestProcessor(class1, request); } };
public String getMethodHelp(String pHandlerName) throws XmlRpcException { XmlRpcHandler h = getHandler(pHandlerName); if (h instanceof XmlRpcMetaDataHandler) return ((XmlRpcMetaDataHandler)h).getMethodHelp(); throw new XmlRpcNoSuchHandlerException("No help available for method: " + pHandlerName); }
/** Logs a message. * @param pMessage The being logged. */ public void log(String pMessage) { server.getErrorLogger().log(pMessage); }
protected OutputStream getOutputStream(ServerStreamConnection pConnection, XmlRpcStreamRequestConfig pConfig, OutputStream pStream) throws IOException { if (pConfig.isEnabledForExtensions() && pConfig.isGzipRequesting()) { setResponseHeader(pConnection, "Content-Encoding", "gzip"); } return super.getOutputStream(pConnection, pConfig, pStream); } }
private Object getInstance( XmlRpcRequest pRequest ) throws XmlRpcException { return requestProcessorFactory.getRequestProcessor( pRequest ); }
/** Adds handlers for the given object to the mapping. * The handlers are build by invoking * {@link #registerPublicMethods(String, Class)}. * @param pKey The class key, which is passed * to {@link #registerPublicMethods(String, Class)}. * @param pClass Class, which is responsible for handling the request. */ public void addHandler(String pKey, Class pClass) throws XmlRpcException { registerPublicMethods(pKey, pClass); }
public Object getRequestProcessor(XmlRpcRequest pRequest) throws XmlRpcException { return RequestSpecificProcessorFactoryFactory.this.getRequestProcessor(pClass, pRequest); } };
public RequestProcessorFactory getRequestProcessorFactory(Class pClass) throws XmlRpcException { final Object processor = getRequestProcessor(pClass); return new RequestProcessorFactory(){ public Object getRequestProcessor(XmlRpcRequest pRequest) throws XmlRpcException { return processor; } }; } }
public String getMethodHelp(String pHandlerName) throws XmlRpcException { XmlRpcHandler h = getHandler(pHandlerName); if (h instanceof XmlRpcMetaDataHandler) return ((XmlRpcMetaDataHandler)h).getMethodHelp(); throw new XmlRpcNoSuchHandlerException("No help available for method: " + pHandlerName); }
/** Logs a message. * @param pMessage The being logged. */ public void log(String pMessage) { server.getErrorLogger().log(pMessage); }
/** Adds handlers for the given object to the mapping. * The handlers are build by invoking * {@link #registerPublicMethods(String, Class)}. * @param pKey The class key, which is passed * to {@link #registerPublicMethods(String, Class)}. * @param pClass Class, which is responsible for handling the request. */ public void addHandler(String pKey, Class pClass) throws XmlRpcException { registerPublicMethods(pKey, pClass); }
public RequestProcessorFactory getRequestProcessorFactory(Class pClass) throws XmlRpcException { final Object processor = getRequestProcessor(pClass); return new RequestProcessorFactory(){ public Object getRequestProcessor(XmlRpcRequest pRequest) throws XmlRpcException { return processor; } }; } }
public String[][] getMethodSignature(String pHandlerName) throws XmlRpcException { XmlRpcHandler h = getHandler(pHandlerName); if (h instanceof XmlRpcMetaDataHandler) return ((XmlRpcMetaDataHandler)h).getSignatures(); throw new XmlRpcNoSuchHandlerException("No metadata available for method: " + pHandlerName); }