Codota Logo
ListingAgent.canExposeServiceMetadata
Code IndexAdd Codota to your IDE (free)

How to use
canExposeServiceMetadata
method
in
org.apache.axis2.transport.http.ListingAgent

Best Java code snippets using org.apache.axis2.transport.http.ListingAgent.canExposeServiceMetadata (Showing top 8 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: org.apache.axis2/axis2-transport-http

private void handleXSDRequest(HttpServletRequest req, HttpServletResponse res,
               AxisService axisService) throws IOException {
  if (!canExposeServiceMetadata(axisService)){
    res.sendError(HttpServletResponse.SC_FORBIDDEN);
    return;
  }
  res.setContentType("text/xml");
  int ret = axisService.printXSD(res.getOutputStream(), getParamtereIgnoreCase(req ,"xsd"));
  if (ret == 0) {
    //multiple schemas are present and the user specified
    //no name - in this case we cannot possibly pump a schema
    //so redirect to the service root
    res.sendRedirect("");
  } else if (ret == -1) {
    res.sendError(HttpServletResponse.SC_NOT_FOUND);
  }
}
origin: apache/axis2-java

private void handleXSDRequest(HttpServletRequest req, HttpServletResponse res,
               AxisService axisService) throws IOException {
  if (!canExposeServiceMetadata(axisService)){
    res.sendError(HttpServletResponse.SC_FORBIDDEN);
    return;
  }
  res.setContentType("text/xml");
  int ret = axisService.printXSD(res.getOutputStream(), getParamtereIgnoreCase(req ,"xsd"));
  if (ret == 0) {
    //multiple schemas are present and the user specified
    //no name - in this case we cannot possibly pump a schema
    //so redirect to the service root
    res.sendRedirect("");
  } else if (ret == -1) {
    res.sendError(HttpServletResponse.SC_NOT_FOUND);
  }
}
origin: org.apache.axis2/axis2-transport-http

private void handleWSDL2Request(HttpServletRequest req,
                HttpServletResponse res,
                String url,
                AxisService axisService) throws IOException {
  if (!canExposeServiceMetadata(axisService)){
    res.sendError(HttpServletResponse.SC_FORBIDDEN);
    return;
  }
  res.setContentType("text/xml");
  String ip = extractHost(url);
  String wsdlName = getParamtereIgnoreCase(req , "wsdl2");
  int ret = axisService.printWSDL2(res.getOutputStream(), ip, wsdlName);
  if (ret == 0) {
    res.sendRedirect("");
  } else if (ret == -1) {
    res.sendError(HttpServletResponse.SC_NOT_FOUND);
  }
}
origin: apache/axis2-java

private void handleWSDL2Request(HttpServletRequest req,
                HttpServletResponse res,
                String url,
                AxisService axisService) throws IOException {
  if (!canExposeServiceMetadata(axisService)){
    res.sendError(HttpServletResponse.SC_FORBIDDEN);
    return;
  }
  res.setContentType("text/xml");
  String ip = extractHost(url);
  String wsdlName = getParamtereIgnoreCase(req , "wsdl2");
  int ret = axisService.printWSDL2(res.getOutputStream(), ip, wsdlName);
  if (ret == 0) {
    res.sendRedirect("");
  } else if (ret == -1) {
    res.sendError(HttpServletResponse.SC_NOT_FOUND);
  }
}
origin: apache/axis2-java

private void handleWSDLRequest(HttpServletRequest req,
                HttpServletResponse res,
                String url,
                AxisService axisService) throws IOException {
  if (!canExposeServiceMetadata(axisService)){
    res.sendError(HttpServletResponse.SC_FORBIDDEN);
    return;
  }
  OutputStream out = res.getOutputStream();
  res.setContentType("text/xml");
  String ip = extractHost(url);
  String wsdlName = getParamtereIgnoreCase(req , "wsdl");
  if (wsdlName != null && wsdlName.length()>0) {
    axisService.printUserWSDL(out, wsdlName, ip);
  } else {
    axisService.printWSDL(out, ip);
  }
}
origin: org.apache.axis2/axis2-transport-http

private void handleWSDLRequest(HttpServletRequest req,
                HttpServletResponse res,
                String url,
                AxisService axisService) throws IOException {
  if (!canExposeServiceMetadata(axisService)){
    res.sendError(HttpServletResponse.SC_FORBIDDEN);
    return;
  }
  OutputStream out = res.getOutputStream();
  res.setContentType("text/xml");
  String ip = extractHost(url);
  String wsdlName = getParamtereIgnoreCase(req , "wsdl");
  if (wsdlName != null && wsdlName.length()>0) {
    axisService.printUserWSDL(out, wsdlName, ip);
  } else {
    axisService.printWSDL(out, ip);
  }
}
origin: apache/axis2-java

               String serviceName,
               AxisService axisService) throws IOException, ServletException {
if (!canExposeServiceMetadata(axisService)){
  res.sendError(HttpServletResponse.SC_FORBIDDEN);
  return;
origin: org.apache.axis2/axis2-transport-http

               String serviceName,
               AxisService axisService) throws IOException, ServletException {
if (!canExposeServiceMetadata(axisService)){
  res.sendError(HttpServletResponse.SC_FORBIDDEN);
  return;
org.apache.axis2.transport.httpListingAgentcanExposeServiceMetadata

Javadoc

Checks whether exposing the WSDL & WSDL elements such as schema & policy have been allowed

Popular methods of ListingAgent

  • <init>
  • processListService
  • copy
    Copies the input stream to the output stream
  • extractHost
  • extractServiceName
  • findPolicy
  • getParamtereIgnoreCase
  • handle
  • handlePolicyRequest
  • handleWSDL2Request
  • handleWSDLRequest
  • handleXSDRequest
  • handleWSDLRequest,
  • handleXSDRequest,
  • listServiceDisabled,
  • populateRequestAttributes,
  • processExplicitSchemaAndWSDL,
  • processListServices,
  • renderView

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getExternalFilesDir (Context)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • Kernel (java.awt.image)
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now