Examples of Endpoint


Examples of com.ibm.sbt.services.endpoints.Endpoint

      throws ServletException, IOException {                                                                                                               
           String endpointName = request.getParameter(AbstractType.PARAM_ENDPOINT_NAME);                                                      
           if (StringUtil.isEmpty(endpointName)) {                                                                               
               endpointName = TYPE;                                                                                              
           }                                                                                                                     
           Endpoint bean = (Endpoint) ManagedBeanUtil.getBean(FacesContext.getCurrentInstance(), endpointName);                  
                                                                                                                                 
           if (bean == null) {                                                                                                   
               throw new ServletException("AuthorizationBean not found in application scope");                                   
           }                                                                                                                     
                                                                                                                                 
View Full Code Here

Examples of com.khs.sherpa.annotation.Endpoint

    // make sure Endpoint Authentication is turned on
    if((Boolean)applicationContext.getAttribute(ApplicationContext.SETTINGS_ENDPOINT_AUTH) == false) {
      return;
    }
   
    Endpoint endpoint = null;
    if(Enhancer.isEnhanced(target)) {
      endpoint = target.getSuperclass().getAnnotation(Endpoint.class);
    } else {
      endpoint = target.getAnnotation(Endpoint.class);
    }
   
    // make sure its authenicated
    if(endpoint.authenticated() && !service.isActive(userid, token).equals(SessionStatus.AUTHENTICATED)) {
      throw new SherpaPermissionExcpetion("User status [" + service.isActive(userid, token) + "]", service.isActive(userid, token).toString());
    }
  }
View Full Code Here

Examples of com.kurento.kmf.media.Endpoint

    log.debug("PARTICIPANT {}: Releasing resources", this.name);
    for (final String remoteParticipantName : incomingMedia.keySet()) {

      log.trace("PARTICIPANT {}: Released incoming EP for {}", this.name,
          remoteParticipantName);
      Endpoint ep = this.incomingMedia.get(remoteParticipantName);
      ep.release(new Continuation<Void>() {

        @Override
        public void onSuccess(Void result) throws Exception {
          log.trace(
              "PARTICIPANT {}: Released successfully incoming EP for {}",
View Full Code Here

Examples of com.peterhi.obsolete.Endpoint

import com.peterhi.obsolete.Endpoint;

public class ServerApp {
  public static void main(String[] args) throws Exception {
    Endpoint ep = new Endpoint(22222);
    ep.addEndpointListener((e) -> {
      String reliableStr = e.isReliable() ? "reliable" : "unreliable";
      System.out.println(MessageFormat.format(
        "Received {0} bytes of {1} data.",
        e.getData().length, reliableStr));
    });
   
    ep.start();
  }
View Full Code Here

Examples of com.reignite.messaging.server.Endpoint

    AMFMessageBody responseBody = new AMFMessageBody();
    context.setResponseBody(responseBody);

    AMFMessageBody messageBody = context.getRequestBody();

    Endpoint endpoint = context.getEndpoint();

    RemotingMessage remotingMessage = (RemotingMessage) messageBody.getData();
    try {
      responseBody.setData(endpoint.routeMessageToService(remotingMessage));
    } catch (MessagingException e) {
      LogWriter.error(getClass(), "Failed to route message to service: " + e, e);
      ErrorMessage errorBody = new ErrorMessage("Service destination could not be reached",
          remotingMessage.getDestination(), remotingMessage.getOperation(), remotingMessage.getParameters());
      responseBody.setData(errorBody);
View Full Code Here

Examples of com.sun.enterprise.webservice.monitoring.Endpoint

         /**
         * This requirement came from the jbi team. If the WebServiceEndpoint
         * is a jbi endpoint which is private throw an error whenever a get
         * or a post request is made
         */
        Endpoint endpt = wsEngine_.getEndpoint(request.getServletPath());
        if (endpt != null) {
            if((endpt.getDescriptor() != null) &&(endpt.getDescriptor().isJBIPrivate())) {
            String message = endpt.getDescriptor().getWebService().getName()+
                    " is a JBI private service; Access is denied.";
            response.setContentType("text/xml");
            (new WsUtil()).writeInvalidMethodType(response, message);
            return;
            }
        }
        if (("Tester".equalsIgnoreCase(request.getQueryString())) &&
             (!(HTTPBinding.HTTP_BINDING.equals(endpoint.getProtocolBinding())))) {
           
            if (endpt!=null && Boolean.parseBoolean(endpt.getDescriptor().getDebugging())) {
                WebServiceTesterServlet.invoke(request, response,
                        endpt.getDescriptor());
                return;
            }
        }       
       
        // lookup registered URLs and get the appropriate adapter;
View Full Code Here

Examples of com.twitter.hbc.core.endpoint.Endpoint

  /**
   * TODO: This must be limited to 25 adds per seconds
   */
  public void addUser(String streamId, long userId) throws IOException, ControlStreamException {
    Endpoint endpoint = SitestreamEndpoint.addUserEndpoint(streamId);
    endpoint.addPostParameter(Constants.USER_ID_PARAM, Long.toString(userId));

    HttpUriRequest request = HttpConstants.constructRequest(hosts.nextHost(), endpoint, auth);
    consumeHttpEntityContent(makeControlStreamRequest(request));
  }
View Full Code Here

Examples of com.twitter.thrift.Endpoint

  }

  @Test
  public void testBadServiceInstance() {
    ServiceInstance badLocal = new ServiceInstance()
        .setAdditionalEndpoints(ImmutableMap.of("foo", new Endpoint("localhost", 500)));

    publishSchedulers(ImmutableSet.of(badLocal));

    assertEquals(Optional.<HostAndPort>absent(), leaderRedirector.getRedirect());
  }
View Full Code Here

Examples of com.twitter.zipkin.gen.Endpoint

    private EndPointSubmitterImpl endPointSubmitter;

    @Before
    public void setUp() {
        mockState = mock(ServerAndClientSpanState.class);
        mockEndPoint = new Endpoint();
        endPointSubmitter = new EndPointSubmitterImpl(mockState);
    }
View Full Code Here

Examples of de.fhkn.in.uce.mediator.peerregistry.Endpoint

        return result;
    }

    private Endpoint getPublicEndpointFromSocket(final Socket socket) {
        final InetSocketAddress publicAddress = new InetSocketAddress(socket.getInetAddress(), socket.getPort());
        return new Endpoint(publicAddress, EndpointCategory.PUBLIC);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.