Coder Social home page Coder Social logo

undertow-docs's People

Contributors

adamkrajcik avatar bdw429s avatar bernardosulzbach avatar chery-qualset-hcd-ca-gov avatar darranl avatar fl4via avatar irus avatar jstourac avatar puggianjv avatar simon04 avatar stuartwdouglas avatar tofflos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

undertow-docs's Issues

PathTemplateHandler description points to deprecated functionality.

Undertow's 2.0 docs state:

Path Template
Similar to the path handler, however the path template handler allows you to use URI template expressions in the path, for example /rest/{name}. The value of the relevant path template items are stored as an attachment on the exchange, under the io.undertow.server.handlers.PathTemplateHandler#PATH_TEMPLATE_MATCH attachment key.

ref: http://undertow.io/undertow-docs/undertow-docs-2.0.0/index.html#built-in-handlers

However when I navigate to the PathTemplateHandler I see that the PATH_TEMPLATE_MATCH is deprecated.

 /** @deprecated */
    @Deprecated
    public static final AttachmentKey<PathTemplateHandler.PathTemplateMatch> PATH_TEMPLATE_MATCH = AttachmentKey.create(PathTemplateHandler.PathTemplateMatch.class);

The docs should reflect non-deprecated functionality here.

For reference I am using the following versions of undertow in Maven:

 <properties>
        <undertow.version>2.0.15.Final</undertow.version>
  </properties>

    <dependencies>
        <dependency>
            <groupId>io.undertow</groupId>
            <artifactId>undertow-core</artifactId>
            <version>${undertow.version}</version>
        </dependency>
        <dependency>
            <groupId>io.undertow</groupId>
            <artifactId>undertow-servlet</artifactId>
            <version>${undertow.version}</version>
        </dependency>
        <dependency>
            <groupId>io.undertow</groupId>
            <artifactId>undertow-websockets-jsr</artifactId>
            <version>${undertow.version}</version>
        </dependency>
    </dependencies>

https://undertow.io/ uses a certificate for jboss.org

I noticed the website uses a bad certificate - hostname does not match hence browser treats the cert is insecure, etc. Please see the screenshot.

Screenshot 2020-05-31 at 22 55 30

I realize this might not be the best place to report issues on the website, but I could not find any better.

Error Handling issue

Just one tip about error handling, if you dispatch the request like this:

    if (exchange.isInIoThread()) {
        exchange.dispatch(this);
        return;
    }

You are not able to handle the error by using the outer handler, one simple workaround is:

    if (exchange.isInIoThread()) {
        exchange.dispatch(new ErrorHandler(this));
        return;
    }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.